Re: 500 Internal Server Error after insert.execute

Jimmy Stock <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
i am getting 403 now.

Exception in thread "main" 
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 
Forbidden
{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "Forbidden",
    "reason" : "forbidden"
  } ],
  "message" : "Forbidden"
}

On Tuesday, October 22, 2013 9:30:44 PM UTC+8, Jimmy Stock wrote:
>
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.