Welcome Developers!

in

Welcome!

in

500 internal server error getting access token

Last post 01-12-2010 3:41 PM by Joel. 40 replies.
Page 1 of 3 (41 items) 1 2 3 Next >
Sort Posts: Previous Next
  • 11-25-2009 4:52 PM

    • David
    • Not Ranked
    • Joined on 11-25-2009
    • Posts 5

    500 internal server error getting access token

    Hi,

    I currently ran into this problem where attempting to exchange the request token for an access token gives a 500 internal server error. I tried with the access delegation tool (http://developer.myspace.com/modules/apis/pages/accessdelegationtool.aspx) and that is also giving an "InternalServerError" notice. Would anybody have an idea why this error is showing up? I would imagine that a external domain validation error would give a 4XX error code.

    I can provide any additional information if that is required.

     

    Thanks,

    David

  • 11-26-2009 7:57 PM In reply to

    • David
    • Not Ranked
    • Joined on 11-25-2009
    • Posts 5

    Re: 500 internal server error getting access token

    Ping.

    Trying with the OAuth Testing Tool also gives an 500 error. I directly passed in the OAuth Token and the OAuth token secret from the call to request_token and it looks like that gives an error as well when trying to get the access token.

    The BaseString that is being generated and the signature used for signing is attached below. Thanks for any help that anybody is able to provide. 

    GET&http%3A%2F%2Fapi.myspace.com%2Faccess_token&oauth_consumer_key%3D2bdd59d6426f43698149b4c91e682221%26oauth_nonce%3D8afae306c58277632363121e807afd8c%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1259293792%26oauth_token%3Dz%25252FW4FUy71LxCPqSIdVXGN0EPX8LmvJgn1FOrv4H%25252BAyfJhGZKENFMWXe0ttBoSj9GnzH2OelH9jrqOIHRhq0RF2B4X0RnmWs6QjQGp%25252BPAsY369QN%25252FARjqvW9Q2vilXNJ1%26oauth_version%3D1.0
    hash key = 26eaa519be1142e8a7461c2395b7d259add84ca5d42e4301a5a9d8091095f5ee&f588521c472e4024a16ec478a1768dca10a1537c55a84807a47c3e1881553a1e

  • 11-27-2009 3:52 AM In reply to

    • Deepak
    • Not Ranked
    • Joined on 11-26-2009
    • Posts 1

    Re: 500 internal server error getting access token

     I can Just confirm. I am getting the same error with this message "An internal error has occured, Please contact MySpace REST API Team"

  • 11-30-2009 5:20 PM In reply to

    Re: 500 internal server error getting access token

    Hi,

     Is this issue still occurring? We made some server changes and I wanted to see if you are having the same problem.

     

    thanks,

    Joel

  • 12-02-2009 9:24 AM In reply to

    • Andrew
    • Not Ranked
    • Joined on 12-02-2009
    • Posts 2

    Re: 500 internal server error getting access token

    I am still seeing the 500 error when using 0Auth3Legged.
  • 12-02-2009 12:25 PM In reply to

    Re: 500 internal server error getting access token

     Everyone who is seeing this, can you send me a uri string you just ran through which resulted in a 500 error?

    thanks,

    Joel

  • 12-03-2009 4:17 AM In reply to

    • Foo
    • Not Ranked
    • Joined on 11-17-2009
    • Posts 1

    Re: 500 internal server error getting access token

    we use 4 different keys (live,staging,deploy,sandbox): 2 of them work, the other 2 don't and result in a 500. here's a uri string which failed /access_token?oauth_nonce=tGCPobf4iWHW6ikVozj3ZqOug6IlUMGtxY0lbJGxbcE&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1259842506&oauth_consumer_key=9fc299a11981487781e840e2b436f6a3&oauth_token=W21H8DkEe5yBlYxKr930L9V7Iagjc1HGdKJGI2IJOvimKWH3eHVmaSIIITRBu5aK6DdUtVskvcBNKP4ivsoO20Gvjjf%2BqiLf1NuFm8wJ1fpvv8OJrftKbJMEde%2FmvR4z&oauth_version=1.0&oauth_signature=KcrxbbZ%2B1WfCXscwResM%2FZrd%2FnU%3D
  • 12-03-2009 7:36 AM In reply to

    • Andrew
    • Not Ranked
    • Joined on 12-02-2009
    • Posts 2

    Re: 500 internal server error getting access token

    I'm using the Open Social PHP Client Library and 3leggedOAuth.

    Here is the url that is redirected from MySpace after logging in/allowing permission to my app:
    ...&oauth_continue=1&token=%2fw0zvrHJDIRclbAqhrnTxGtydxbEFkR4AG4ZGXpGMHn7oVV8Gf8zK%2f3hGudEF7aHEAi0bQcb0i01kEVdAzDt3vcGPWBMgoy0Iqs2indUL+EteQ4oZiwvKNZBQhNQ5TOn&key=97782e137248487babc7385eca2e034f7b953218130f48aa8f69a5c9c325e8a8&oauth_token=%252Fw0zvrHJDIRclbAqhrnTxGtydxbEFkR4AG4ZGXpGMHn7oVV8Gf8zK%252F3hGudEF7aHEAi0bQcb0i01kEVdAzDt3vcGPWBMgoy0Iqs2indUL%252BEteQ4oZiwvKNZBQhNQ5TOn

    Here is the error message returned from the client library:
    Fatal error: Uncaught exception 'osapiException' with message 'Error requesting oauth access token, code 500, message: ' in opensocial/osapi/auth/osapiOAuth3Legged.php:115 Stack trace: #0 opensocial/osapi/auth/osapiOAuth3Legged.php(81): osapiOAuth3Legged->upgradeRequestToken('/w0zvrHJDIRclbA...', '97782e137248487...') #1 videos.php(1386): osapiOAuth3Legged::performOAuthLogin('7bb249361dab486...', 'f944e18dc57c46a...', Object(osapiFileStorage), Object(osapiMySpaceProvider), 'a796bbbec04fae5...') #2 {main} thrown in opensocial/osapi/auth/osapiOAuth3Legged.php on line 115
  • 12-10-2009 9:15 AM In reply to

    Re: 500 internal server error getting access token

     Hi Joel,

     I opened up a thread not realizing this one was open. http://developer.myspace.com/Community/forums/t/9357.aspx  I am also getting the same  error with the  external authorization tool you have. I can get through the Request token part, and authenticate a user, however when it directs me back to get an access token, a read error message appears with "Internal Server Error"

     I am getting an error with the Framework I am using also at the same point in the process "Unable to read response, or response is empty" which is thrown by the framework immediately after the response comes back from your servers.

     I am working on a project for a client right now where it is crucial to have this running for myspace. 

     Thanks in advance for your help.

     

  • 12-10-2009 10:52 AM In reply to

    • Mario
    • Not Ranked
    • Joined on 12-09-2009
    • Posts 2

    Re: 500 internal server error getting access token

     Fatal error: Uncaught exception 'MySpaceException' with message 'Request to http://api.myspace.com/access_token?oauth_version=1.0&oauth_nonce=e56cd6e185d3949c31d26a0fe3bc5d26&oauth_timestamp=1260470692&oauth_consumer_key=wer24324rerewrewrewr&oauth_verifier=9e40fa45-daf9-4bfc-9be6-ba8ed0163455&oauth_token=ewwJJjhjdsD2FMIg5x%2FOtGJx77cwe4PHYktXq6492B62QSRXovRU4o3CVOG4tTYVMv5e9eBlm%2FcKI%2FrzyYBbxu1GeS%2BwwLq8c3h%2FdpptaRIewFUDWJ&oauth_signature_method=HMAC-SHA1&oauth_signature=3TLgLD6ZHOXj2%2Fg%3D failed:

    HTTP error 500

    Response:

    HTTP/1.1 500 An Internal Server exception has occurred. Please contact MySpace REST API Team. Proxy-Connection: Keep-Alive Connection: Keep-Alive Content-Length: 0 Via: 1.1 TDG-SVR-004 Date: Thu, 10 Dec 2009 18:47:04 GMT Server: Microsoft-IIS/6.0 Cache-Control: private X-Powered-By: ASP.NET Set-Cookie: MSCulture=IP=201.158.189.39&IPCulture=es-MX&PreferredCulture=es-MX&PreferredCulturePending=&Country=TVg=&ForcedE in C:\xxxxxxxx\www\home\myspace\php-sdk\source\MySpaceID\myspace.php on line 1607

  • 12-10-2009 5:02 PM In reply to

    Re: 500 internal server error getting access token

    I believe I'm having the same or similar issue, the URL for me that throws a 500 is: http://api.myspace.com/access_token?msid_sdk=java_0.8.1&oauth_consumer_key=fe1660cc67594db8963cae27d61788c8&oauth_nonce=3955532728752799469&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1260493178&oauth_token=q6QwxlqlsEOdNId%2BpAeUHC7%2BG7SR1RYeqVAckX9eLA8cTn8zSN7viA0bnpLO6rcjFUgvqM%2Foun6kpvOlWesdLAnOm5oHQzsCRSHrC7NEaILNlesPJ%2BkMTN0YZdmT1OnL&oauth_verifier=b50bb808-30bf-4bea-8e96-bb2b59eea5b1&oauth_version=1.0&oauth_signature=17YevRAqPbD%2BmofQBHOea6y%2Fgq4%3D I'm using the Java SDK and the sample OAuth app ran fine. Copying almost the identical code and using my key/secret pair does not. Does the app need to be "published" for these calls to work? Mike
  • 12-11-2009 1:37 AM In reply to

    Re: 500 internal server error getting access token

    Andrew:
    I'm using the Open Social PHP Client Library and 3leggedOAuth.

    Here is the url that is redirected from MySpace after logging in/allowing permission to my app:
    ...&oauth_continue=1&token=%2fw0zvrHJDIRclbAqhrnTxGtydxbEFkR4AG4ZGXpGMHn7oVV8Gf8zK%2f3hGudEF7aHEAi0bQcb0i01kEVdAzDt3vcGPWBMgoy0Iqs2indUL+EteQ4oZiwvKNZBQhNQ5TOn&key=97782e137248487babc7385eca2e034f7b953218130f48aa8f69a5c9c325e8a8&oauth_token=%252Fw0zvrHJDIRclbAqhrnTxGtydxbEFkR4AG4ZGXpGMHn7oVV8Gf8zK%252F3hGudEF7aHEAi0bQcb0i01kEVdAzDt3vcGPWBMgoy0Iqs2indUL%252BEteQ4oZiwvKNZBQhNQ5TOn

    Here is the error message returned from the client library:
    Fatal error: Uncaught exception 'osapiException' with message 'Error requesting oauth access token, code 500, message: ' in opensocial/osapi/auth/osapiOAuth3Legged.php:115 Stack trace: #0 opensocial/osapi/auth/osapiOAuth3Legged.php(81): osapiOAuth3Legged->upgradeRequestToken('/w0zvrHJDIRclbA...', '97782e137248487...') #1 videos.php(1386): osapiOAuth3Legged::performOAuthLogin('7bb249361dab486...', 'f944e18dc57c46a...', Object(osapiFileStorage), Object(osapiMySpaceProvider), 'a796bbbec04fae5...') #2 {main} thrown in opensocial/osapi/auth/osapiOAuth3Legged.php on line 115

     

    Similar here.

    Here is the url that is redirected from MySpace after logging in/allowing permission to my app:

    index.php?f=callback&oauth_token=Krt9Zegs7qBe8rr5Q42ipYXKMPp9RvVA6UIE5wNb3KorGcdvFzPIYwjYvNtqaIwuuSP4IETaTCmSUq8n9Jxs9VCq2MSLbG2TerjHR%252FKYHF3oOQHhJjmWpDWpMF1fAI2g&oauth_verifier=ce10a89c-514c-4482-8b44-a28b1177ed53

    Here is the error message returned from the client library:

    Uncaught exception 'MySpaceException' with message 'Request to http://api.myspace.com/access_token?oauth_version=1.0&oauth_nonce=3aa1013329abfc343ca4757505f6b536&oauth_timestamp=1260523805&oauth_consumer_key=2d1b543c93344f459e1f0d66ce6c9ab7&oauth_verifier=ce10a89c-514c-4482-8b44-a28b1177ed53&oauth_token=Krt9Zegs7qBe8rr5Q42ipYXKMPp9RvVA6UIE5wNb3KorGcdvFzPIYwjYvNtqaIwuuSP4IETaTCmSUq8n9Jxs9VCq2MSLbG2TerjHR%2FKYHF3oOQHhJjmWpDWpMF1fAI2g&oauth_signature_method=HMAC-SHA1&oauth_signature=rcgcNLJh7pfU87MD3uOEc7XaxSY%3D failed:<br/><br/> HTTP error 500 <br/><br/> Response:<br/><br/> HTTP/1.1 500 An Internal Server exception has occurred. Please contact MySpace REST API Team. 

  • 12-11-2009 6:05 AM In reply to

    • Me
    • Not Ranked
    • Joined on 10-29-2009
    • Posts 2

    Re: 500 internal server error getting access token

    I ran into the same issue for 3 of my apps. I have used MySpace's External Application Authentication tool. (http://developer.myspace.com/Modules/APIs/Pages/AccessDelegationTool.aspx). I selected the keys from the drop down and three of them didn't work - I get an InternalServerError when the access token is requested.

     Any help is greatly appreciated.

  • 12-13-2009 4:46 PM In reply to

    • Yaniv
    • Not Ranked
    • Joined on 12-13-2009
    • Posts 6

    Re: 500 internal server error getting access token

     I wrote in a different thread the problem I'm facing and it sounds like it's the same problem described in this thread. So I'm reposting my issue here:

    This is the result I'm getting in the browser (using php API):

     <br />
    <b>Fatal error</b>:  Uncaught exception 'MySpaceException' with message 'Request to http://api.myspace.com/access_token?oauth_version=1.0&amp;oauth_nonce=fc970d8f020197e8cdf50c0ab713d925&amp;oauth_timestamp=1260750679&amp;oauth_consumer_key=1783e3293cfa472696f8f743152d2e52&amp;oauth_verifier=8888d375-82e1-4b9b-a500-22fe3850a897&amp;oauth_token=UfZwbr4BCd2IzA3XFAHYqYiSPLaNMTrtJgrbBpBrX0v%2B7rjSqXJpcmPdcG%2Bn%2BCjwLDz6ENXznjBhVbTiJkNLxn4GvZqjQD8PQ%2B4F1ruSBEVN5Xw2yvXxrBRRLsGnLOjJ&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=E1UERNJ%2BJkI%2FWWs1HEvbk6GvlF0%3D failed:&lt;br/&gt;&lt;br/&gt;

    HTTP error 500 &lt;br/&gt;&lt;br/&gt;

    Response:&lt;br/&gt;&lt;br/&gt;
    HTTP/1.1 500 An Internal Server exception has occurred. Please contact MySpace REST API Team.
    Cache-Control: private
    Content-Length: 0
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Set-Cookie: MSCulture=IP=208.43.226.82&amp;IPCulture=en-US&amp;PreferredCulture=en-US&amp;PreferredCulturePending=&amp;Country=VVM=&amp;ForcedExpiration=633963186793048682&amp;timeZone=0&amp;myStuffDma=&amp;myStuffMarket=&amp;USRLOC=QXJlYUNvZGU9MjE0JkNpdHk9RGFsbGFzJkNvdW50cnlDb2RlPVVTJkNvdW50cnlOYW1lPVVuaXRlZCBTdGF0ZXMmRG1hQ29kZT02MjMmTGF0aXR1ZGU9MzIuNzgyNSZMb25naXR1ZGU9LTk2LjgyMDcmUG9zdGFsQ29kZT03NTIwNyZSZWdpb25OYW1lPVRY; domain=.myspace.com; expires=Wed, 13-Jan-2010 00:31:19 GMT; path=/
    Set-Cookie: ASP.NET_SessionId=lgtpi545icg42y55hhm3qgy3; path=/; HttpOnly
    X-Server: ccc9073f1536e0afa76971e4852f7fd1cd8bde445b0f9df4
    Set-Cookie: SessionDDF1=94471cd01ba690b7914ce7af7634c89047f0216d81136fdd; domain=.myspace.com; path=/
    Set-Cookie: SessionDDF2=845251857dc8ba97c74ed19591d1a9a2ea41bed47014dead; domain=.myspace.com; path=/; expires=Monday, 14-Jun-10 00:31:19 GMT
    Date: Mon, 14 Dec 2009 00:31:18 GMT

    ' in /var/www/dev.mysite.com/myspace-platform/MySpaceID/myspace.php:1607
    Stack trace:
    #0 /var/www/dev.mysite.com/myspace-platform/MySpaceID/myspace.php(1388): MySpace-&gt;http('http://api.mysp...')
    #1 /var/www/dev.mysite.com/myspace-platform/MySpaceID/myspace.php(804): MySpace-&gt;oAuthRequest('http://api.mysp...', Array)
    #2 /var/www/dev.mysite.com/bdFramework/tools/MyspaceM in <b>/var/www/dev.mysite.com/myspace-platform/MySpaceID/myspace.php</b> on line <b>1607</b><br />

  • 12-14-2009 5:15 PM In reply to

    Re: 500 internal server error getting access token

    Hello,

     

    Could one of you please email the following information to developerrelations@myspace-inc.com to help us troubleshoot:

     

    Resource URL:


    Consumer Key:


    Consumer Secret:


    oAuth Token:


    oAuth Token Secret:


    oAuth Timestamp:


    oAuth Nonce:


    Base string:

    URI:

    Response Body:


    Response Status:
    StatusCode=
    StatusDescription=

     

    Please put "http 500 errors" in the subject line.

     

    thanks,

    Joel
Page 1 of 3 (41 items) 1 2 3 Next >