Welcome Developers!

in

Welcome!

in

HTTP error 401oauth_problem=timestamp_refused

Last post 12-30-2009 1:31 PM by Joel. 23 replies.
Page 1 of 2 (24 items) 1 2 Next >
Sort Posts: Previous Next
  • 07-16-2009 7:26 AM

    HTTP error 401oauth_problem=timestamp_refused

    Hi ,

    I am trying to integrate MySpaceID using PHP-SDK.  I integrated it on my local server which had PHP version 5.2.0. It worked fine on it. When I deployed it on my live server which has PHP 5.1.6, it gave me error Class DateTime() not found in myspace.php.

    So I tweaked a bit & used php 5.1.6 function date("Y-m-d\TH:i:sP") which  gave the same output as  DateTime::ATOM in PHP 5.2.0.

    After doing that,  it gave me exception HTTP error 401oauth_problem=timestamp_refused.

    Also, I changed the the callback url, realm url according to my live server...

    I am able to authenticate on MySpace but cant execute 

    $ms = new MySpace(CONSUMER_KEY, CONSUMER_SECRET, $authorized_request_token->key, $authorized_request_token->secret);

    I dont know much about MyspaceID integration. I just followed the tutorial on 

    http://wiki.developer.myspace.com/index.php?title=MySpaceID_PHP_SDK_Walkthrough_for_Relying_Parties

    Please help me out with suggestions. 

    Following is the complete exception :

    [MySpaceException]
    Request to http://api.myspace.com/access_token?oauth_version=1.0&oauth_nonce=a7254ca55f9ef0db01d07c3d598vfgsd&oauth_timestamp=1247738331&oauth_consumer_key=dd4cb72f34a14134918518ebe8e6gytr&oauth_token=0zfNSgjqffnVgwJjJmXP7WGWqNe45AT52JcCoJoGOIlnEp3brC27TS80VtQa2rud%2BtX5atxV6iYEX6vgXNQPMshQbndaBmzMF6Ukn8%2FI7Zsrg737k8PKVU5mcDMNmwmT&oauth_signature_method=HMAC-SHA1&oauth_signature=EKkWOr9J%2BLnKu%2B7%2FAlE1tQlbeOM%3D failed:

    HTTP error 401

    Response:

    HTTP/1.1 401 Unauthorized Cache-Control: private Content-Length: 82 Content-Type: application/x-www-form-urlencoded; charset=utf-8 Server: Microsoft-IIS/6.0 WWW-Authenticate: OAuth realm="http://api.myspace.com/authorization", oauth_problem=timestamp_refused, oauth_acceptable_timestamps=1247751793-1247752693 Set-Cookie: MSCulture=IP=74.XXX.XXX.XXX&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633833242934958422&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9NjEwJkNpdHk9V2F5bmUmQ291bnRyeUNvZGU9VVMmQ291bnRyeU5hbWU9VW5pdGVkIFN0YXRlcyZEbWFDb2RlPTUwNCZMYXRpdHVkZT00MC4wNTQ4JkxvbmdpdHVkZT0tNzUuNDA4MyZQb3N0YWxDb2RlPTE5MDg3JlJlZ2lvbk5hbWU9UEE=; domain=.myspace.com; expires=Sat, 15-Aug-2009 13:58:13 GMT; path=/ Set-Cookie: ASP.NET_SessionId=zwrilv550hlris45aylmhjr0; path=/; HttpOnly X-Server: 5256a0a8505249581c66d025ddd8e24830ee6acb668b155e Set-Cookie: SessionDDF1=5a631c3e941fb3af1279ab8e37a0325b31638bcba20f02e8; domain=.myspace.com; path=/ Set-Cookie: SessionDDF2=ef1f3975sdfsdfsd4d217c083a4eafb6897747792045f87f3; domain=.myspace.com; path=/; expires=Saturday, 16-Jan-10 13:58:13 GMT Date: Thu, 16 Jul 2009 13:58:13 GMT oauth_problem=timestamp_refused, oauth_acceptable_timestamps=1247751793-1247752693

     

  • 07-16-2009 9:57 AM In reply to

    • John
    • Top 200 Contributor
    • Joined on 02-02-2008
    • Posts 27

    Re: HTTP error 401oauth_problem=timestamp_refused

    Have you checked the time on your production server? If the clock was off on the server it could cause the problem you are reporting.
  • 07-16-2009 11:02 PM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

     YEs, I have done tha. It shows EDT time. If you notice there oauth response made time is around some hundred seconds less than the acceptable timestamp. If I adjust the oauth timestamp to be in a range of acceptable timestamp, then it shows Http Error 403: Unauthorized Access , Banned IP.

    I really dont know what to do. Please help me out.     

    Filed under:
  • 07-20-2009 11:21 AM In reply to

    • Kiam
    • Top 200 Contributor
    • Joined on 11-18-2008
    • Posts 28

    Re: HTTP error 401oauth_problem=timestamp_refused

    What is your IP?

  • 07-20-2009 9:55 PM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

    It is of the form  74.208.XXX.XXX

  • 07-20-2009 10:49 PM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

    Actually it's  http://74.208.162.186/

  • 08-07-2009 2:12 AM In reply to

    • rubyaa
    • Not Ranked
    • Joined on 07-29-2008
    • Posts 4

    Re: HTTP error 401oauth_problem=timestamp_refused

    does it work now? I meet similar problem.

    following is error message I get:

    Notice: Only variable references should be returned by reference in /home/sysadmin/public_html/forums/myspace/samples/myspaceid-openid-oauth-popup/common.php on line 80

    Fatal error: Uncaught exception 'MySpaceException' with message 'Request to http://api.myspace.com/access_token?oauth_version=1.0&oauth_nonce=0c0b8c27f1dc818ce0060c7677f6a810&oauth_timestamp=1249635410&oauth_consumer_key=8d51e59ed5b142da948282e453e37cd6&oauth_token=6NPKVplDypNw3PGNmpbKCqhiVEQatmFRhfbFq6rY0mnZZzyDKb%2F7df1MRtLdsk51XKKZgfvSYSQNEXsH7BWzwDEM5sWTkcJKiPkAJxnyU40llgtellSLDpODfS8bwFnf&oauth_signature_method=HMAC-SHA1&oauth_signature=94BCUTES9XPsaMEj5ctF9xleIYM%3D failed:<br/><br/> HTTP error 403 <br/><br/> Response:<br/><br/> HTTP/1.1 403 Banned IP Cache-Control: private Content-Length: 118 Content-Type: application/xml; charset=utf-8 Server: Microsoft-IIS/6.0 Set-Cookie: MSCulture=IP=97.74.196.90&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633852070103119608&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9NDgwJkNpdHk9U2NvdHRzZGFsZSZDb3VudHJ5Q29kZT1VUyZDb3VudHJ5TmFtZT1Vbml0ZWQgU3RhdGVzJkRtYUNvZGU9NzUzJkxhdGl0dWRlPTMzLjYxMTkmTG9uZ2l0dWRlPS0xMTEuO in /home/sysadmin/public_html/forums/myspace/source/MySpaceID/myspace.php on line 1592

  • 08-12-2009 9:37 PM In reply to

    • Kiam
    • Top 75 Contributor
    • Joined on 02-19-2009
    • Posts 62

    Re: HTTP error 401oauth_problem=timestamp_refused

    For the above poster: what is your IP address?

    For the previous poster, we will look into this.  Please stand by.


    Follow us on twitter for major updates and announcements:

    http://twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=295946135
  • 08-14-2009 2:33 AM In reply to

    • rubyaa
    • Not Ranked
    • Joined on 07-29-2008
    • Posts 4

    Re: HTTP error 401oauth_problem=timestamp_refused

    My Ip Address is 97.74.196.90 Thanks for your help :)

  • 08-19-2009 10:51 AM In reply to

    • Travis
    • Not Ranked
    • Joined on 08-19-2009
    • Posts 1

    Re: HTTP error 401oauth_problem=timestamp_refused

    I am also receiving the 403 Banned IP error when running the samples from the SDK. Exact Message Below: Fatal error: Uncaught exception 'MySpaceException' with message 'Request to http://api.myspace.com/request_token?oauth_version=1.0&oauth_nonce=3c854b452d01fe12031640cd60ada932&oauth_timestamp=1250703926&oauth_consumer_key=b42dd7cf2bab4d5aaae83d2c5d5145c4&oauth_callback=http%3A%2F%2Fwww.yanguchong.com%2Fsamples%2Fmyspaceid-oauth%2Findex.php%3Ff%3Dcallback&oauth_signature_method=HMAC-SHA1&oauth_signature=UW6ebcr%2Ba2VZOKIn0cjflixejvo%3D failed:

    HTTP error 403

    Response:

    HTTP/1.1 403 Banned IP Cache-Control: private Content-Length: 118 Content-Type: application/xml; charset=utf-8 Server: Microsoft-IIS/6.0 Set-Cookie: MSCulture=IP=97.74.144.193&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633862755268382499&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9NDgwJkNpdHk9U2NvdHRzZGFsZSZDb3VudHJ5Q29kZT1VUyZDb3VudHJ5TmFtZT1Vbml0ZWQgU3RhdGVzJkRtYUNvZGU9NzUzJkxhdGl0dWRlPTMzLjYxMTkmTG9uZ2l0dWRlPS0xMTEuODkwNyZQb3N0YWxDb2RlPTg1MjYwJlJlZ2lvbk in /home/content/t/r/a/traveloneous/html/myspace-sdk/source/MySpaceID/myspace.php on line 1607
  • 08-24-2009 5:30 AM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

    I have the same problem with Action Script API. I am just following the example and can't get request token because 401 error.' Please, help.
  • 08-25-2009 12:08 PM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

    I need IP addresses for anyone that is getting this problem.
  • 08-25-2009 8:32 PM In reply to

    • Begade
    • Not Ranked
    • Joined on 08-22-2009
    • Posts 3

    Re: HTTP error 401oauth_problem=timestamp_refused

     I am having the same 403 error.  I can fetch the oauth_token from my home PC but not from the actual PC hosting a MySpace App in development.  I've sent my IP in a PM.

  • 08-31-2009 4:36 AM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

    I have no static IP. This is not my IP problem. I've tried to get request token with your testing tool (http://developer.myspace.com/Modules/APIs/Pages/OAuthTool.aspx) URL works ok.
  • 09-11-2009 1:08 PM In reply to

    Re: HTTP error 401oauth_problem=timestamp_refused

    Anyone with this problem who is using the Google Code MySpace SDK for PHP (and possibly the others) and the MySpace oAuth sample code.  Check the line that starts with: $tok = $ms->getRequestToken  in the samples/myspace-oauth/index.php file and if it references www.yanguchong.com make sure to change that URL to your actual samples URL, otherwise you will get failed token messages.  For more info see for description and solution:

    http://code.google.com/p/myspaceid-php-sdk/issues/detail?id=7

Page 1 of 2 (24 items) 1 2 Next >