Comments (11)
That's Telegrams fault afaik.
from node-telegram-bot.
Probably, but is it possible to wrap this exception? In the current moment my bot suddenly breaks.
from node-telegram-bot.
Why would you wrap that error? I think it is your responsibility you properly handle that error.
from node-telegram-bot.
I mean this error occurs in the part of node-telegram-bot library. Is it possible to handle somehow this exception in my code?
from node-telegram-bot.
How do you receive the error?
from node-telegram-bot.
You can see full stacktrace in the description. That's all I have..
from node-telegram-bot.
Did you get it in a callback or has it been thrown somewhere else?
from node-telegram-bot.
If I have got this information, I could catch this error and add some logging, but I do not know how to understand it using this stacktrace.
I see that error occurs somewhere in poll method inside pollingRequest: https://github.com/depoio/node-telegram-bot/blob/master/lib/Bot.js#L273
from node-telegram-bot.
Do something like bot.on('error', (err) => {/* handle error here */)
.
from node-telegram-bot.
Thank you for suggestion, I will try it as soon as possible!
from node-telegram-bot.
Hmm.. I've just checked source and I already have the following code (but bot was stopped anyway).
bot.on('error', function (error) {
log(error);
});
Perhaps the problem was caused by OpenShift. Thank you for your time! I will reopen this ticket, if find something interesting.
from node-telegram-bot.
Related Issues (20)
- Error HTTP 409 HOT 3
- got error HOT 1
- "/error" crashes the bot HOT 4
- Native promise HOT 2
- Inline bots HOT 1
- .on fired twice HOT 1
- getFile without dir parameter HOT 1
- pulling and http 409 error HOT 1
- Quick fix for a problem with edited messages (no `msg.message`; but messages include a `msg.edited_message`) HOT 5
- hi, is there an option or a way to send a photo from a url? HOT 1
- Still possible to use streams instead of filepath? HOT 1
- hi is there a way to remove private chat messages?
- "sendContact" not work
- TypeError: Cannot read property 'text' of undefined HOT 4
- Error: read ECONNRESET HOT 1
- Edited messages causes library to break HOT 9
- Unhandled rejection Error: read ECONNRESET HOT 1
- bug: replay inline keyboard with callback has crash
- Initialize only with App Id and App Hash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-telegram-bot.