passport / todos-express-twitter

Express 4.x app using Passport for sign in with Twitter.
The Unlicense
106 stars 56 forks source link

Failed to obtain request token #3

Open shenghuowang opened 8 years ago

shenghuowang commented 8 years ago

after config key and callback,when I start server,failed to obtain request token,the log as below: at Strategy.OAuthStrategy._createOAuthError (/home/shenghuowangnb/express-4.x-twitter-example/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:396:17) at /home/shenghuowangnb/express-4.x-twitter-example/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:244:41 at /home/shenghuowangnb/express-4.x-twitter-example/node_modules/passport-twitter/node_modules/passport-oauth1/node_modules/oauth/lib/oauth.js:543:17 at ClientRequest. (/home/shenghuowangnb/express-4.x-twitter-example/node_modules/passport-twitter/node_modules/passport-oauth1/node_modules/oauth/lib/oauth.js:421:9) at ClientRequest.emit (events.js:107:17) at TLSSocket.socketErrorListener (_http_client.js:271:9) at TLSSocket.emit (events.js:129:20) at net.js:459:14 at process._tickCallback (node.js:355:11)

nikrb commented 6 years ago

same problem, found answer here

basically change twitter app setup url to http://127.0.0.1/login/twitter/return and in server.js callbackURL: 'http://localhost:3000/login/twitter/return'

marswong commented 6 years ago

@shenghuowang maybe u need a global proxy to break the firewall 😃