twitter-banner icon indicating copy to clipboard operation
twitter-banner copied to clipboard

Error While starting

Open dhananjayandayalan opened this issue 3 years ago • 3 comments

I tried to run "npm start", but it shows error like this. Screenshot 2021-12-05 at 12 59 28 PM

How to clear the error?

dhananjayandayalan avatar Dec 05 '21 07:12 dhananjayandayalan

I tried to run "npm start", but it shows error like this. Screenshot 2021-12-05 at 12 59 28 PM

How to clear the error?

Hey, you are getting this error because you didn't provide your Twitter API secret key

Please read this article to see how to get your API key: https://www.freecodecamp.org/news/create-a-dynamic-twitter-header/

iamspruce avatar Dec 05 '21 07:12 iamspruce

@iamspruce I used all api Keys and access tokens. Still this error come.

dhananjayandayalan avatar Dec 08 '21 10:12 dhananjayandayalan

@iamspruce Actually the problem is that you have name ACCESS_KEY in the .env file while you are calling process.env.ACCESS_TOKEN in the index js file while defining twitterClient Variable in step 2.

@dhananjayandayalan Change the ACCESS_KEY to ACCESS_TOKEN in your .env file to solve this.

ankur700 avatar Feb 15 '22 07:02 ankur700