Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFatal error: Uncaught exception with message 'Invalid request token' #314
Comments
This comment has been minimized.
This comment has been minimized.
|
So it just started happening recently and only to some users? Is it consistently the same users? Do the users consistently get the error? Do you have multiple servers that could have different characteristics? Is it a timing thing where if you wait 5 seconds from when the user returns from authorizing until actually requesting the access token it starts working? |
This comment has been minimized.
This comment has been minimized.
PHPism
commented
Feb 17, 2015
|
I'm selling my script to many users. I was using it without issues on my script demo and localhost and some of the customers has upgraded to the latest version. All was working fine a few days ago then suddenly all of that stopped working (Demo, localhost, and many customers reported it me). The reports started today and all of these are in different servers. |
This comment has been minimized.
This comment has been minimized.
|
I can't replicate it and I would guess that something changed on Twitter's side. Try posting to https://twittercommunity.com/c/oauth |
abraham
closed this
Feb 17, 2015
This comment has been minimized.
This comment has been minimized.
PHPism
commented
Feb 19, 2015
|
I reviewed your documents and hoping that rebuilding the callback.php file will help and it did. :) |
vanflicke
referenced this issue
Apr 21, 2015
Closed
Fatal error: Uncaught exception 'Abraham\TwitterOAuth\TwitterOAuthException' with message... #348
This comment has been minimized.
This comment has been minimized.
izotx
commented
Apr 8, 2016
|
That just started happening to me... |
This comment has been minimized.
This comment has been minimized.
|
@izotx please don't post unrelated comments to old issues. Create new issues if you are having issues. |
PHPism commentedFeb 17, 2015
Hello sir;
Everything was working absolutely fine with the script until some of the users reported this issue while authorization:
Fatal error: Uncaught exception 'Abraham\TwitterOAuth\TwitterOAuthException' with message 'Invalid request token' in \twitteroauth\src\TwitterOAuth.php:141 Stack trace: #0 \twitter_callback.php(41): Abraham\TwitterOAuth\TwitterOAuth->oauth('oauth/access_to...', Array) #1 {main} thrown in \twitteroauth\src\TwitterOAuth.php on line 141
In twitter_callback.php line 41:
$access_token = $connection->oauth("oauth/access_token", array("oauth_verifier" => $_REQUEST['oauth_verifier']));
I noticed that you have updated some files, so I downloaded them and applied them to the website and still the same issue, only "TwitterOAuth.php on line 141" changed it was "TwitterOAuth.php on line 221".
The issue happened to all my working websites at the same time, and no application configuration edits were made.
Thanks for your time.