Does anyone know why I keep getting this error in terminal after I followed all the steps and entered node bot.js ?
console.log(err[0].message); ^ TypeError: Cannot read property 'message' of undefined
I have followed 3 other tutorials that were very similar to this, and I followed this one because it was made most recently (2019).
Any idea what could be wrong? I even copied and pasted it entirely, installed the twitter dependency, and my keys and secret keys are recent.
Replace error block with this:
if(err){ console.log('Error:- ', err.message); }
You will get the exact error message.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Does anyone know why I keep getting this error in terminal after I followed all the steps and entered node bot.js ?
I have followed 3 other tutorials that were very similar to this, and I followed this one because it was made most recently (2019).
Any idea what could be wrong? I even copied and pasted it entirely, installed the twitter dependency, and my keys and secret keys are recent.
Replace error block with this:
if(err){
console.log('Error:- ', err.message);
}
You will get the exact error message.