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
Bot stops randomly #101
Comments
Seems to be that when No network connection. Error: Error: getaddrinfo ENOTFOUND api.telegram.org api.telegram.org:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:79:26) and that's why module api request error: Body: undefined
Error: SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at IncomingMessage.response.on.e (/node_modules/tiny_request/lib/network.js:68:38) Also pls see nodejs/node-v0.x-archive#5488 |
The error is obviously not generated by I don't expect the bot to stop getting updates after a single getUpdates fails. |
How about to manually find out what wrong is going on? Try to use only |
I'm working to make my bot work well again in my free time. Still, I had to open this issue here, to enlight the bad behavior of this library. If you'll work on it I'll be grateful! I haven't explored the version 3 internals yet. |
So, I gonna try to reproduce the same issue as you have, and then find out how to fix or just handle this Error. |
This is a Telegram API error. Affecting everyone. Confirmed. |
Thanks for info, but anyway we should implement error handling 😅 |
Any news? |
Upgrade both node and the module to the latest versions. |
I'm already on v6@latest and its reproducing |
hey, can i get message id and chat id user with bot, |
actually i am still reading it but dont know how to call it heheheh |
how to get what user send to the bot? im just wanna console.log(whatUserSend) on my command prompt |
@frengkys Welcome to Gitter chat: telegram-node-bot - answered you here to prevent spam in Issues. |
Hey guys, at this moment we have:
Dont know what else to add, any ideas? |
p.s. I will publish soon v4.0 with webhooks, hope that helps |
@Naltox how is v4.0 is going? :) |
using version 3.0.12 . Bot unresponsive after this error:
|
Issue persists on v4 API. Does the code have retry mechanism for network disconnection? And when the bot not response to commands, the web admin page also cannot be reached. |
I usually force keep the bot alive by handling any uncaught exceptions! |
Every now and then, the bot stops working (without crashing).
The forever log is the same every time: http://pastebin.com/0Cwhbe6i
The text was updated successfully, but these errors were encountered: