Open sandfam opened 3 years ago
Hi Mike,
Thanks for bringing this to my attention. I believe there was a small change I had to make after an API update that I forgot to include in my article. I will take a look and let you know today.
Thanks, Praneeth
On Wed, Jul 14, 2021 at 8:21 AM sandfam @.***> wrote:
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:
@.***MAC 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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pguduguntla/twitter-bot-reply-media/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFVM266MCCWED4QOR2KP2A3TXWTPDANCNFSM5ALVZ3RQ .
-- Thanks, Praneeth G.
Thank you SO much!
Hi,
I have those errors too. How can I fix it ? Thanks
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.
Ok same problem, no answer over a year later. This is pretty useless.
Error 401 is no authorization, check your tokens.
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.