0

Random signature_invalid while making YQL calls

My app is getting frequent errors with the following message while making YQL calls:

{'status': '401', 'via': 'HTTP/1.1 GWA', 'age': '0', 'x-google-cache-control': 'remote-fetch', 'vary': 'Accept-Encoding', 'server': 'YTS/1.17.21', 'connection': 'keep-alive', 'cache-control': 'private', 'date': 'Mon, 26 Apr 2010 20:05:08 GMT', 'content-type': 'application/json', 'www-authenticate': 'OAuth oauth_problem="signature_invalid", realm="yahooapis.com"'}, '{"error":{"lang":"en-US","description":"Please provide valid credentials"}}'

While quite a few calls go through using exactly the same code, other fails. I am using the following lib:

http://python-yql.org/index.html

by
1 Reply
  • QUOTE (Vivek Puri @ Apr 26 2010, 12:08 PM) <{POST_SNAPBACK}>
    My app is getting frequent errors with the following message while making YQL calls:

    {'status': '401', 'via': 'HTTP/1.1 GWA', 'age': '0', 'x-google-cache-control': 'remote-fetch', 'vary': 'Accept-Encoding', 'server': 'YTS/1.17.21', 'connection': 'keep-alive', 'cache-control': 'private', 'date': 'Mon, 26 Apr 2010 20:05:08 GMT', 'content-type': 'application/json', 'www-authenticate': 'OAuth oauth_problem="signature_invalid", realm="yahooapis.com"'}, '{"error":{"lang":"en-US","description":"Please provide valid credentials"}}'

    While quite a few calls go through using exactly the same code, other fails. I am using the following lib:

    http://python-yql.org/index.html


    Without any more specifics its difficult to say. One of the most common problems is that "*" isnt being encoded correctly (to %2A). Its a problem with the oauth spec and some oauth libraries encode it and some dont. Yahoo's oauth requires it to be encoded.

    Jonathan
    0

Recent Posts

in YQL