Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Error Response - RESOLVED #7

Open
ghost opened this issue Mar 30, 2011 · 1 comment
Open

401 Error Response - RESOLVED #7

ghost opened this issue Mar 30, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 30, 2011

Hi Elliot,
I am trying out this library but have run into an issue.
What I did:
-I dropped the files into a fresh CI reactor install,
-I entered my consumer info into the config/tweet_config.php file
-I went to the tweet_test url,
-it sent me to twitter to authenticate but it had an error page that the tokens were already used,
-I noticed that there was no value for the oauth_token parameter in the querystring,
-I dug into the code and tried to find why there was no oauth_token being received,
-I tracked the code to where the response comes back from twitter, line 205 of /libraries/tweet.php,
-I put this line in before it die(var_dump($response));
-After re running the request I get the dump of a tweetResponseOauth object that has a 401 error code and this message "Failed to validate oauth signature and token"

I hit google looking for help and turned up nothing except that it could be the server time not accurate enough, I checked the server time and it is accurate.

I am at a loss to figure out the problem and it happens on both my home server and my production server, any assistance would be appreciated.

-Luke

UPDATE: Alright, after a few days away from the code, I came back to try again. I figured out the problem pretty much straight away... I skipped a step in the installation instructions, so this is all my bad, sorry.

To have your application register with twitter as a browser app you MUST supply a callback url, failure to enter will will revert your selection to a client app and will cause the error I got.

My apologies to anyone who might have looked into this and I promise that next time I will RTFM... properly :P

@cdevroe
Copy link

cdevroe commented Apr 13, 2011

@lwcallaghan If the URL in the application settings on Twitter aren't the same as your testing environment could it make this Library not work? Example: I have an app that I'm building at myapp.com and when I'm developing I have dev.myapp.com - will that cause problems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant