500 Internal Server Error after insert.execute
Jimmy Stock <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Why getting 500 Internal Server Error after insert.execute
Credential credential = authorize(HTTP_TRANSPORT, JSON_FACTORY, new
LocalServerReceiver(), BloggerScopes.all());
// set up global Plus instance
System.out.println(credential.getRefreshToken());
Builder blog = new Blogger.Builder(HTTP_TRANSPORT, JSON_FACTORY,
credential);
blog.setApplicationName("project-name-in-google-console");
Post content = new Post();
content.setTitle("A test post");
content.setContent("With <code>HTML</code> content");
Blogger blogger = blog.build();
Insert insert = blogger.posts().insert("6828107655361625046", content);
insert.setIsDraft(false);
insert.setFields("author/displayName,content,published,title,url");
Post post = insert.execute();
Exception in thread "main"
com.google.api.client.googleapis.json.GoogleJsonResponseException: 500
Internal Server Error
{
"code" : 500,
"message" : null
}
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/groups/opt_out.