Loading ...
Sorry, an error occurred while loading the content.

oauth_problem="signature_invalid" for some GEO requests.

Expand Messages
  • informedika
    Reposting from http://developer.yahoo.com/forum/OAuth-General-Discussion-YDN-SDKs/oauth
    Message 1 of 3 , May 7, 2013
    • 0 Attachment
      Reposting from http://developer.yahoo.com/forum/OAuth-General-Discussion-YDN-SDKs/oauth-problem-signature-invalid-for-some-GEO-requests-/1367144588315-015ad9ea-46f7-49fe-9bc9-be807400e749?msg=1

      Hello,

      Boss Geo service works inconsistently for me. When I search by ZIP (location=78682) it works fine. But when I search for "location=San+Francisco,+CA" (a sample from the docs: http://developer.yahoo.com/boss/geo/docs/examples-placefinder.html ) it returns

      Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"

      I'm using Signpost for OAuth. To see HTTP traffic details I used Wireshark and recreated the requests via curl. Here is a sample of the working request:

      curl --header "Authorization: OAuth oauth_consumer_key=\"dj0yJmk9SGhWa2N5NUVZWloxJmQ9WVdrOU1HazRiek5sTnpRbWNHbzlNVFV6T0RJM01URTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD01MA--\", oauth_nonce=\"-4312704860548758906\", oauth_signature=\"iRUNOekUexVxFqYvODv2lgzQp0U%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1367142034\", oauth_version=\"1.0\"" "<http://yboss.yahooapis.com/geo/placefinder?location=78682&flags=CJ>"

      {"bossresponse":{"responsecode":"200","placefinder":{"start":"0","count":"1","request":"flags=CJ&location=78682","results":[{"quality":"60","latitude":"30.500626","longitude":"-97.630246","offsetlat":"30.509041","offsetlon":"-97.677223","radius":"6900"}]}}}

      And a non-working request:

      curl --header "Authorization: OAuth oauth_consumer_key=\"dj0yJmk9SGhWa2N5NUVZWloxJmQ9WVdrOU1HazRiek5sTnpRbWNHbzlNVFV6T0RJM01URTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD01MA--\", oauth_nonce=\"5187912265673636040\", oauth_signature=\"Pi7r8yjjhXP%2FRK%2F%2Fs4SI0dnbFCA%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1367142147\", oauth_version=\"1.0\"" "<http://yboss.yahooapis.com/geo/placefinder?location=San+Francisco>,+CA&flags=J"

      <?xml version='1.0' encoding='UTF-8'?>
      <<yahoo:error> <xmlns:yahoo=>'<http://yahooapis.com/v1/base.rng>'
        <xml:lang=>'en-US'>
        <<yahoo:description>>Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"</<yahoo:description>>
      </yahoo:error>


      This looks like service bug to me.
    • Rahul Hampole
      Hello Please encode the + as %2B and this should resolve your problem. Regards BOSS Team From: informedika
      Message 2 of 3 , May 7, 2013
      • 0 Attachment
        Hello
        Please encode the + as %2B and this should resolve your problem.
        Regards
        BOSS Team


        From: informedika <informedika@...>
        Reply-To: "ysearchboss@yahoogroups.com" <ysearchboss@yahoogroups.com>
        Date: Wednesday, May 8, 2013 6:50 AM
        To: "ysearchboss@yahoogroups.com" <ysearchboss@yahoogroups.com>
        Subject: [ysearchboss] oauth_problem="signature_invalid" for some GEO requests.

         

        Reposting from http://developer.yahoo.com/forum/OAuth-General-Discussion-YDN-SDKs/oauth-problem-signature-invalid-for-some-GEO-requests-/1367144588315-015ad9ea-46f7-49fe-9bc9-be807400e749?msg=1

        Hello,

        Boss Geo service works inconsistently for me. When I search by ZIP (location=78682) it works fine. But when I search for "location=San+Francisco,+CA" (a sample from the docs: http://developer.yahoo.com/boss/geo/docs/examples-placefinder.html ) it returns

        Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"

        I'm using Signpost for OAuth. To see HTTP traff! ic details I used Wireshark and recreated the requests via curl. Here is a sample of the working request:

        curl --header "Authorization: OAuth oauth_consumer_key=\"dj0yJmk9SGhWa2N5NUVZWloxJmQ9WVdrOU1HazRiek5sTnpRbWNHbzlNVFV6T0RJM01URTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD01MA--\", oauth_nonce=\"-4312704860548758906\", oauth_signature=\"iRUNOekUexVxFqYvODv2lgzQp0U%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1367142034\", oauth_version=\"1.0\"" "<http://yboss.yahooapis.com/geo/placefinder?location=78682&flags=CJ>"

        {"bossresponse":{"responsecode":"200","placefinder":{"start":"0","count":"1","request":"flags=CJ&location=78682","results":[{"quality":"60","! ;latitude":"30.500626","longitude":"-97.630246","offsetlat":"30.509041","offsetlon":"-97.677223","radius":"6900"}]}}}

        And a non-working request:

        curl --header "Authorization: OAuth oauth_consumer_key=\"dj0yJmk9SGhWa2N5NUVZWloxJmQ9WVdrOU1HazRiek5sTnpRbWNHbzlNVFV6T0RJM01URTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD01MA--\", oauth_nonce=\"5187912265673636040\", oauth_signature=\"Pi7r8yjjhXP%2FRK%2F%2Fs4SI0dnbFCA%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1367142147\", oauth_version=\"1.0\"" "<http://yboss.yahooapis.com/geo/placefinder?location=San+Francisco>,+CA&flags=J"

        <?xml version='1.0' encoding='UTF-8'?>
        <<yahoo:error> <xmlns:yahoo=>'<http://yahooapis.com/v1/base.rng>'
          <xml:lang=>'en-US'&g! t;
          <<yahoo:description>>Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"</<yahoo:description>>
        </yahoo:error>


        This looks like service bug to me.

      • informedika
        Hello, That didn t make any difference: curl --header Authorization: OAuth
        Message 3 of 3 , May 13, 2013
        • 0 Attachment
          Hello,

          That didn't make any difference:

          curl --header "Authorization: OAuth oauth_consumer_key=\"dj0yJmk9SGhWa2N5NUVZWloxJmQ9WVdrOU1HazRiek5sTnpRbWNHbzlNVFV6T0RJM01URTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD01MA--\", oauth_nonce=\"4180970844193364186\", oauth_signature=\"OPKAvsKvABEPR9W2B7oHwNN7qX0%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1368428606\", oauth_version=\"1.0\"" "http://yboss.yahooapis.com/geo/placefinder?location=San%2BFrancisco,%2BCA&flags=J"

          <?xml version='1.0' encoding='UTF-8'?>
          <yahoo:error xmlns:yahoo='http://yahooapis.com/v1/base.rng'
          xml:lang='en-US'>
          <yahoo:description>Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"</yahoo:description>
          </yahoo:error>

          Thanks

          --- In ysearchboss@yahoogroups.com, Rahul Hampole <rhampole@...> wrote:
          >
          > Hello
          > Please encode the + as %2B and this should resolve your problem.
          > Regards
          > BOSS Team
        Your message has been successfully submitted and would be delivered to recipients shortly.