christian-fei / twitter-oauth-login-in-nodejs

example repo for twitter oauth login in node.js
https://cri.dev/posts/2020-03-05-Twitter-OAuth-Login-by-example-with-Node.js/
18 stars 15 forks source link

Actually not working and shows below error #5

Open megabites2013 opened 3 years ago

megabites2013 commented 3 years ago

(node:58058) UnhandledPromiseRejectionWarning: Error: Error getting OAuth request token at /Users/sebamac/projects/twitter-oauth-login-in-nodejs/oauth-utilities.js:37:18 at /Users/sebamac/projects/twitter-oauth-login-in-nodejs/node_modules/oauth/lib/oauth.js:543:17 at passBackControl (/Users/sebamac/projects/twitter-oauth-login-in-nodejs/node_modules/oauth/lib/oauth.js:397:13) at IncomingMessage. (/Users/sebamac/projects/twitter-oauth-login-in-nodejs/node_modules/oauth/lib/oauth.js:409:9) at IncomingMessage.emit (events.js:387:35) at endReadableNT (internal/streams/readable.js:1317:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) (node:58058) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

jseparovic commented 2 months ago

make sure you are using your app's API Key and Secret. Not the Client ID and Secret.