0

Server Error when upload a single update via Updates REST API

I got HTTP ERROR 500 when trying to upload a single update via Updates REST API. I was sending the following URL with a XML pay load. The same OAuth routine works fine for HTTP GET. Do I need to do something special for HTTP PUT?

URL
http://social.yahooapis.com/v1/user/JWYNCS...fqTi9enavVsk%3D

Response
<?xml version='1.0' encoding='utf-8'?>
<error xmlns='http://yahooapis.com/v1/base.rng'
xml:lang='en'>
<description>500 Internal Server Error</description>
<detail>basic_string::_S_construct NULL not valid</detail>
</error>

thanks,

by
4 Replies
  • I moved to use authentication header, now I am getting HTTP Status code 400:
    <?xml version="1.0" encoding="UTF-8"?> <yahoo:error xmlns:yahoo="http://social.yahooapis.com/v1/base.rng" yahoo:uri="http://social.yahooapis.com/v1/errors/400" xml:lang=en-US> <yahoo:description>Malformed syntax or a Bad query</yahoo:description> <yahoo:detail>Failed while checking query params</yahoo:detail></yahoo:error>, <?xml version="1.0" encoding="UTF-8"?> <yahoo:error xmlns:yahoo="http://social.yahooapis.com/v1/base.rng" yahoo:uri="http://social.yahooapis.com/v1/errors/400" xml:lang=en-US> <yahoo:description>Malformed syntax or a Bad query</yahoo:description> <yahoo:detail>Failed while checking query params</yahoo:detail></yahoo:error>

    Here's my xml payload:

    <?xml version="1.0" encoding="UTF-8"?>
    <updates>
    <update>
    <class>app</class>
    <collectionType>guid</collectionType>
    <description>Pan is sending update from open_app1</description>
    <suid>appUpdateSuid1</suid>
    <link>http://www.pogo.com</link> <source>APP.jLBQPU4u</source>
    <pubDate>1231542248</pubDate>
    <publishedTime>1231542248</publishedTime>
    <title>Woo Hoo</title>
    <type>appActivity</type>
    <collectionID>hidden</collectionID>
    </update>
    </updates>

    url: http://social.yahooapis.com/v1/user/hidden...uid1?format=xml
    The XML payload was created following the PUT example here: http://developer.yahoo.com/social/rest_api...e-resource.html
    0
  • Hi Panda,

    We've had a few reports of errors w/ PUT requests to the Updates API. We are looking into this. Please check back for updates. In the meantime, here's a thread that may be helpful:
    http://developer.yahoo.net/forum/index.php?showtopic=321

    I wish I had more information for you at this time :(The XML payload was created following the PUT example here: http://developer.yahoo.com/social/rest_api...e-resource.html
    0
  • Has there been any updates to this issue? We are having the same issue with the same error.

    We're using the oauth library from here: http://code.google.com/p/oauth/

    Basically when I try to do a HTTP PUT with this URL

    http://social.yahooapis.com/v1/user/IKAXRI...4M1269016137129

    and these update options:

    {suid=APP.2GKDmR4cIKAXRIC2BXNH36MYMBI6QYQK4M1269016136458,
    type=appActivity,
    title=The Shining,
    class=app,
    description=liked The Shining on GetGlue,
    pubDate=1269016136,
    link=http://dev.getglue.com/movies/shining/stanley_kubrick/?s=y,
    collectionID=IKAXRIC2BXNH36MYMBI6QYQK4M,
    source=APP.2GKDmR4c,
    publishedTime=2010-03-19T16:28:56Z,
    collectionType=guid}

    I get this error:

    <?xml version='1.0' encoding='utf-8'?>
    <error xmlns='http://yahooapis.com/v1/base.rng'
    xml:lang='en'>
    <description>500 Internal Server Error</description>
    <detail>basic_string::_S_construct NULL not valid</detail>
    </error>


    QUOTE (Erik @ Jan 16 2009, 10:49 AM) <{POST_SNAPBACK}>
    Hi Panda,

    We've had a few reports of errors w/ PUT requests to the Updates API. We are looking into this. Please check back for updates. In the meantime, here's a thread that may be helpful:
    http://developer.yahoo.net/forum/index.php?showtopic=321

    I wish I had more information for you at this time :(
    0
  • QUOTE (Panda @ Jan 9 2009, 01:19 PM) <{POST_SNAPBACK}>
    I got HTTP ERROR 500 when trying to upload a single update via Updates REST API. I was sending the following URL with a XML pay load. The same OAuth routine works fine for HTTP GET. Do I need to do something special for HTTP PUT?

    URL
    http://social.yahooapis.com/v1/user/JWYNCS...fqTi9enavVsk%3D

    Response
    <?xml version='1.0' encoding='utf-8'?>
    <error xmlns='http://yahooapis.com/v1/base.rng'
    xml:lang='en'>
    <description>500 Internal Server Error</description>
    <detail>basic_string::_S_construct NULL not valid</detail>
    </error>

    thanks,

    what the heck you yahoo doing i can't comment because you won't post my comment and you messing up with my e-mail
    0
  • This forum is locked.

    Recent Posts

    in Updates