-
Notifications
You must be signed in to change notification settings - Fork 488
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
crashing #1
Comments
This literally means the bot can't connect to Telegram. Do you still get this error? Is internet working from that machine? Verify your network settings. Also, please post the output of |
I know it, but why it is crashing? I think that bot should try to reconnect instead of crash :) Sometimes servers get lost of connectivity, so bot should be able to handle this kind of situations. |
This is true. The latest (unreleased ATM) Botgram retries most requests without failing, so as long as you're not using your bot when Telegram servers crash, it will keep running. However, there's still a lot of corner situations that I don't know how to handle (Telegram API unreachable, message limit exceeded, ...) so I always recomment running the bot with a respawner. |
Hello, same crash:
|
That's probably because your Internet is momentarily failing, or Telegram's API is down (which happens a lot lately). If you get
The last (still unreleased) version of Botgram will avoid most crashes when any of these issues happen. But I'll still recommend using a respawner. |
Creating Procfile for heroku
events.js:160
throw er; // Unhandled 'error' event
^
NetworkError: Error: connect ETIMEDOUT 149.154.167.197:443
at NetworkError.Error (native)
at new NetworkError (/root/shell-bot/node_modules/botgram/lib/bot.js:21:20)
at ClientRequest.handleResponse (/root/shell-bot/node_modules/botgram/lib/bot.js:129:24)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1277:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
The text was updated successfully, but these errors were encountered: