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

Multiple Errors #1

Open
sandfam opened this issue Jul 14, 2021 · 6 comments
Open

Multiple Errors #1

sandfam opened this issue Jul 14, 2021 · 6 comments

Comments

@sandfam
Copy link

sandfam commented Jul 14, 2021

Hello,

I am running an macOS Big Sur version 11.4. I did everything that was outlined here, and repeated it:

https://towardsdatascience.com/building-a-real-time-twitter-bot-that-replies-with-media-e353fff1c395

I just can't seem to ascertain what I did wrong.

Here's the error I get:


Mike@iMAC twitter-bot % node bot.js
Searching for tweets...
node:events:371
throw er; // Unhandled 'error' event
^

Error: Status Code: 401
at Request. (/Users/Mike/twitter-bot/node_modules/twitter/lib/twitter.js:277:28)
at Request.emit (node:events:394:28)
at Request.onRequestResponse (/Users/Mike/twitter-bot/node_modules/request/request.js:1059:10)
at ClientRequest.emit (node:events:394:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:621:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:127:17)
at TLSSocket.socketOnData (node:_http_client:487:22)
at TLSSocket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:312:12)
at readableAddChunk (node:internal/streams/readable:287:9)
at TLSSocket.Readable.push (node:internal/streams/readable:226:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
Emitted 'error' event at:
at Request. (/Users/Mike/twitter-bot/node_modules/twitter/lib/twitter.js:277:14)
at Request.emit (node:events:394:28)
[... lines matching original stack trace ...]
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)


Please let me know if I'm lacking any information that will help you to help me. I greatly appreciate your time.

@pguduguntla
Copy link
Owner

pguduguntla commented Jul 14, 2021 via email

@sandfam
Copy link
Author

sandfam commented Jul 14, 2021

Thank you SO much!

@Zeppe79
Copy link

Zeppe79 commented Feb 10, 2022

Hi,

I have those errors too. How can I fix it ? Thanks

@sandfam
Copy link
Author

sandfam commented Feb 10, 2022

Hi,

I have those errors too. How can I fix it ? Thanks

Hi Zeppe79,

He never got back to me, but I wish he would have. Hopefully, he sees this.

@rcoenen
Copy link

rcoenen commented Mar 15, 2022

Ok same problem, no answer over a year later. This is pretty useless.

@rdewolff
Copy link

Error 401 is no authorization, check your tokens.

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

5 participants