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

ch6 (git) - http://localhost:3000/auth/twitter returns 500 error #5

Closed
nikolaygit opened this issue Sep 14, 2014 · 2 comments
Closed

Comments

@nikolaygit
Copy link

Using the source code from git and the recommended start.sh from the book, when I try to sign in with Twitter, I get a 500 error from Express. (Key, Secret and Twitter name are set)

Console output:

starting step - getRequestToken
undefined
GET /auth/twitter 500 5898ms
@azat-co
Copy link
Owner

azat-co commented Sep 15, 2014

@nikolayhg it's hard to help with so little info from you... my guess it that your keys are not set property-check and debug there first

start.sh example (notice no space before or after =):

TWITTER_CONSUMER_KEY=ABCABC
TWITTER_CONSUMER_SECRET=XYZXYZXYZ
node app

or

TWITTER_CONSUMER_KEY=ABCABC \
TWITTER_CONSUMER_SECRET=XYZXYZXYZ \
node -e "console.log(process.env.TWITTER_CONSUMER_KEY)"

@azat-co azat-co closed this as completed Sep 15, 2014
azat-co added a commit that referenced this issue Sep 15, 2014
@rbutera
Copy link

rbutera commented Dec 22, 2014

could you please go through what settings/permissions the Twitter app requires?

Personally, I really enjoy Practical Node.js but I think at least some explanation/hand-holding when it comes to creating the Twitter app is essential!

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

3 participants