Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 when running Google API Blogger post insert example #692

Closed
wonderfly opened this issue Jan 10, 2015 · 1 comment
Closed

404 when running Google API Blogger post insert example #692

wonderfly opened this issue Jan 10, 2015 · 1 comment
Assignees
Labels
imported priority: p2 Moderately-important priority. Fix may not be included in next release.

Comments

@wonderfly
Copy link
Contributor

From tshikats...@gmail.com on December 07, 2012 13:41:46

Version of google-api-java-client (e.g. 1.5.0-beta)? 1.12.0-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6 SE (Desktop application) Describe the problem. I am trying to run the post insert example (my blog id is 5003102683969937524):

    GoogleCredential gcred = new GoogleCredential()
            .setAccessToken(ACCESS_TOKEN);

    new GoogleCredential.Builder();

    Blogger blogger
        = new Blogger.Builder(HTTP_TRANSPORT, JSON_FACTORY,gcred)
            .build();

    // Construct a post to insert
    Post content = new Post();
    content.setTitle("A test post");
    content.setContent("With \<code>HTML</code> content");

    // The request action.
    Insert postsInsertAction = blogger.posts()
            .insert(TEST_BLOG_ID, content);

    // Restrict the result content to just the data we need.
    postsInsertAction.setFields("author/displayName,content,published,title,url");

    // This step sends the request to the server.
    Post post = postsInsertAction.execute();

and I get:

404 Not Found
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "Not Found",
"reason" : "notFound"
} ],
"message" : "Not Found"
} How would you expect it to be fixed? No more 404.

Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=678

@wonderfly wonderfly added imported priority: p2 Moderately-important priority. Fix may not be included in next release. 1 star labels Jan 10, 2015
@wonderfly wonderfly self-assigned this Jan 10, 2015
@wonderfly
Copy link
Contributor Author

From ngmic...@google.com on February 28, 2013 08:20:57

Apologies for the difficulties you're having. The code example in question has been confirmed to be working as intended. Odds are the issue is something involving your specific code, such as your authentication. For more personalized support, I suggest asking a question on Stack Overflow using the [google-api-java-client] tag. More information on support can be found here: https://code.google.com/p/google-api-java-client/wiki/Support

Status: ByDesign
Labels: -Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported priority: p2 Moderately-important priority. Fix may not be included in next release.
Projects
None yet
Development

No branches or pull requests

1 participant