0

HTTP Error 500 when add an update (Invalid APP or Invalid Data)

Hi,

I'm getting HTTP Error 500 when I try to add an update. I'm getting the following response error:

{ "error" : { "uri" : "http://social.yahooapis.com/v1/errors/500","lang": "en-US","description": "Internal Server Error","detail": "Error parsing request body(Invalid APP or Invalid Data)" }}

I'm using the PHP SDK from Yahoo! Social API SDKs (http://developer.yahoo.com/social/sdk/#php), this SDK uses json son to insert the update and it looks like correct.

{"updates":[{"collectionID":"**************************","collectionType":"guid","class":"app","source":"APP.********","type":"appActivity","suid":"appActivityGrudi-123422153","title":"Grudi publicado","description":"Teste do myGrudi","link":"http:\/\/www.mygrudi.com.br","pubDate":"1249671929"}]}

Can someone help me on this?

Thanks in advance.

4 Replies
  • Anybody here?
    0
  • Do you have the "Updates" read/write scope set for your application?

    - Jon
    0
  • QUOTE (Jon @ Aug 14 2009, 02:02 PM) <{POST_SNAPBACK}>
    Do you have the "Updates" read/write scope set for your application?

    - Jon


    Yes I do. I've tried other APIs like Yahoo! Status( Read and Write fine) and Yahoo! Profiles (Just Read but fine). I'm only having problems with Yahoo! Updates to write a new update, using JSON or XML the response error is the same "Error parsing request body(Invalid APP or Invalid Data)".

    I can't figure out what's wrong. I think it's happening maybe because I'm using an Application registered as Client/Desktop. Could it be because of this?

    Thank you so much Jon.
    0
  • The desktop app might be the reason. Could you please post a code snippet where you are instantiating the Yahoo! OAuth session and then trying to post an update? I'll run it through a few test apps and see if I can narrow down a solution for you.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc
    0

Recent Posts

in Updates