node.js - Debugging Twitter API's error code: 89 -


when run app, error message, , i'm not entirely sure why.

[ { code: 89, message: 'invalid or expired token.' } ]

it working little on week ago, , generated tokens new application, , i'm still receiving error.

i've tried looking this, , i've tried new application, reinstalling node packages. i'm trying use twitter node package here: https://www.npmjs.com/package/twitter

according documentation, usage right, , can confirm same code working week ago.

var twitter = require('twitter'); var auth = require('../config/twitter.js');  var client = new twitter({   consumer_key: auth['consumer_key'],   consumer_secret: auth['consumer_secret'],   access_token: auth['access_token'],   access_token_secret: auth['access_token_secret'] });  client.get('statuses/user_timeline', {screen_name: 'lrroberts0122', count: 10}, function(error, tweets) {   if(error) {     console.log(error);   } else {     console.log(tweets);   }; }); 

i can confirm absolute certainty keys being pulled accurately config file.

i'm trying statuses of user timeline - last 'x' amount of tweets specified user. wasn't using kind of authentication or oauth aside own api - i'm not sure if need implement now.

any appreciated! =)

thank help!

as added note, did take @ question: twitter application oauth started returning error code 89 invalid or expired token after 1 year working

but i'm not sure if applies in i'm trying do.

this barebones node application, there's not other have. please let me know if there's additional information might need.

generate new access token , try that. ref: https://twittercommunity.com/t/solved-errors-message-invalid-or-expired-token-code-89/10797/11


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -