Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error While starting #1

Open
dhananjayandayalan opened this issue Dec 5, 2021 · 3 comments
Open

Error While starting #1

dhananjayandayalan opened this issue Dec 5, 2021 · 3 comments

Comments

@dhananjayandayalan
Copy link

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?

@iamspruce
Copy link
Owner

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/

@dhananjayandayalan
Copy link
Author

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

@ankur700
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants