Re: Post can not be retrieved return "400" error code Invalid value

Marc L'Heureux <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hullo --

Today we noticed that the "getByPath" endpoint for retrieving blog posts 
was not working as expected. I believe it is the issue detailed above.

For our request:

returning the following JSON:

{"error": {"errors": [{"domain": "global","reason": "invalid","message": 
"Invalid Value"}],"code": 400,"message": "Invalid Value"}}
The URL the user above used seems to be the one listed in the example: 
/2012/01/engage-with-your-readers-through.html, from the blog with the ID 
2399953. This comes from the documentation at 
https://developers.google.com/blogger/docs/3.0/reference/posts/getByPath.

I've also tried a couple of others. The request I noticed this was broken 
on was: Blog ID 8183573566252447807, path 
/2012/01/engage-with-your-readers-through.html. The URL for this request 
is: 
https://www.googleapis.com/blogger/v3/blogs/8183573566252447807/posts/bypath?path=%2F2011%2F01%2Fwalk-on-woolacombe-beach.html&key=AIzaSyA_Pj8dpkW7Eza33yv9pHZFWGUOZNozOUs. 
This response should correspond to the output of 
https://www.googleapis.com/blogger/v3/blogs/8183573566252447807/posts/1191578631344721686?key={KEY}(which works), for this page: 
http://devonyaker.blogspot.com/2011/01/walk-on-woolacombe-beach.html.

I *know* that this request worked at some point in the near past for: Blog 
ID 1160748978011900653, path /2013/02/tokyo-12-day-10-tokyo-skytree-and.html, 
for
 http://roselolitawonderland.blogspot.com/2013/02/tokyo-12-day-10-tokyo-skytree-and.html. 
The URL for this request should be: https://www.googleapis.com/blogger/v3/blogs/1160748978011900653/posts/bypath?path=%2F2013%2F02%2Ftokyo-12-day-10-tokyo-skytree-and.html&key={key}. 
This should give output analogous to 
https://www.googleapis.com/blogger/v3/blogs/1160748978011900653/posts/
5689420438787763141?key={KEY}

I would appreciate confirmation that the issue with this endpoint is on the 
Google side, and not on our side -- or whether this change will be 
long-lived or permanent -- so that I know whether or not I will have to 
patch this code.

Thanks,
MGL

On Wednesday, December 18, 2013 12:12:11 PM UTC-5, Brett Morgan wrote:
>
> Can you include your blog id and the full path of the post you are 
> attempting to retrieve in plain text so I can cut'n'paste them? The 
> screenshot has elided the post path.
>
> brett
>
>
> On Wed, Dec 18, 2013 at 4:29 AM, Nitin Mishra <[email protected]<javascript:>
> > wrote:
>
>>
>> <https://lh5.googleusercontent.com/-4Vu6bZ7q354/UrGU6zjIjqI/AAAAAAAAABg/WnnkzLCdiOo/s1600/Untitled.png>
>>
>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/bloggerdev.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
>
> Brett Morgan | Developer Relations Engineer, Google Maps | 
> [email protected] <javascript:> | profiles.google.com/brettmorgan
>  

-- 
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.