-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
not recovering from polling error - (even after longer time period) #97
Comments
Ran into the same problem except for some reason the polling errors out almost every day and does not re-start until manual intervention. |
Same here. Mine are quite infrequent. Running on a RPi 3. I just did some testing by dropping the WAN interface, watched the polling error msg come up as expected. I then upped the WAN and (not what I would expect if this was the cause) the Telegram node re-established connection, as it should. So I am skeptical that this is solely a network issue. What other things can cause a polling error? Please advise, as this is extremely frustrating and means that Telegram cannot be relied on. |
I will try to reproduce that... I had never expirienced that problem by myself. Maybe the node can discover that somehow ... |
I have the same symptoms on my Raspberry Pi 3b. The receiving nodes stop working until a node-red restart. Sending nodes as far as I remember recover after internet connection recovered.. |
Nothing ever logged for me. |
I mean was somerhing written to the console not into the debug log? |
I can check for console log and report back. |
I see this too, worked around it via restarting node red via a dedicated flow... |
could you kindly share your flow? but overall seems a complete node-red restart a "second best" solution. |
Well, that is the crux of the issue. It's not whether it disconnects, but why it doesn't re-connect. |
I have the same problem using free soks5 proxy. Maybe bot is stoped, when proxy refuses connection? Bot code sets 'stopPooling' to true on this. But there should be retry... |
Ok I will remove stop polling when socks5 is used: see version 7.1.4 |
I deactivated my WIFI while running the bot. It does reconnect on my machine. |
On my machine it says:
But in this case it recovers from the error... |
@windkh |
@nlef yes please |
@ALL please check what nodejs version you have: please send this version to me |
You started node red and already at that time you get the following. Right? Mar 20:26:28 - [warn] [telegram bot:6d758a8.37064f4] EFATAL: Error: Client network socket disconnected before secure TLS connection was established |
And finally that one 04:31:21 - [warn] [telegram bot:6d758a8.37064f4] EFATAL: Error: SOCKS connection failed. TTL expired. |
I will try to add a reconnect method .... it would be nice if you could test it for me |
after some time. From 20-30 seconds to 10 minutes i got this errors.
Yes. this is a strange error, but it disapeers when i restart Nodered as service! Restarting doesn't hepl me(
I'l help with pleasure) |
well I tried to find the root of the error "TTL expired" and found it here |
@windkh i think there should be reconnect in error handler. This error usually occurs using tor or another unstable proxy( |
@nlef well I am not sure if that exactly happens during reconnect... so an additional reconnect won‘t help |
@windkh here is some info from stackexchange |
I can not open the link |
@windkh I'm sory. I edited comment. |
No, I am using node, but the issue is gone now, I deleted the old bot and made another one and get another token from telegram, now API works. If polling error back I back here. Change token solves the problem for me. thanks. |
I can't believe that this is a problem with the token! huh!? |
A redeploy will also fix it. Al I am saying, changing a token will also forse you the redeploy so it’s no proof that changing a token is the fix... |
Version 8.3.3 resets the polling error status after 80% of poll interval is reached |
At all RPI users. Please try to change the poll interval to a larger value than 300ms. Maybe the interval ist too short for a small CPU. |
Thanks for updating! |
I did only release 8.3.3 via npm... some previous versions with sendInvoice alpha were not released via npm |
I updated and polling seems always works, even if I switch PC to st-by ) I've noticed that every time I send a message (probably I receive too) the node status have a notification, even if the status was the same before (connected->connected), I was trying to create a function that notificates me by telegram when the node changed status and I didn't filter to catch only disconnect, as result I've got a infinite loop of messages which I luckly blocked without Telegram bans me for flood )) |
I agree, but I need solve it faster as I can. now Barabba11 has a clue, and make sense. |
No, With my little test I could easily replicate it. My doorbell would normally send a telegram message, but it does not. |
@rvt on what OS do you run node red? |
I also have the similar problem with Node Red on Raspberry Pi 4. This looks like two (probably) unrelated bugs for me. First - status "not connected" but actually everything works (this happens almost every day). I am not sure, if it is related, but I have on the same Raspberry 2 instances of Node Red and they run 2 different bots. I have read this thread and checked once more, that there are no similar tokens on these two instances. |
The first status not connected problem should be solved with the last version. |
After startup the initial status is connected ... when an error occurs and polling is continued then polling shows up. Are both bots running on the same system? |
Both are running on the same Raspberry, but in different processes of Node Red. Thank you for clarification! |
This polling error and disconnection issue is not unique to Raspberry Pi. I have identical problems running Telegram on node-red on Windows 10. I do know what the problem IS NOT.... I thought I'd install a new bot for every node that needed one (as opposed to using a single bot throughout my node-red). That did not fix the problem. In fact, once you have 20 bots from the BotFather he won't give you any more. Documentation on Telegram is very vague and poorly written. |
Any news on the polling issue? |
No... could not reproduce it, sorry |
I'm having the exact same issue using HassOS on a Raspberry Pie 4 and node red on it. |
Would have been nice if we know how to debug this thing :) I can reproduce it in under 5 minutes! |
@rvt sounds good. What debugger could we use on your system? |
@windkh it's a linux system, I think we could use any we want.Just let me know the commands to run... |
@rvt we could try something like that: |
Maybe issue #172 is a hint into the right direction. |
Version 10.0.3 should address this problem. Reopen the issue if the problem still exists. |
hi,
my internet was gone, the tlgr-bot showed an polling error. that normal.
my internet was recovered after 15 minute, the bot never recovered. the sending nodes stayed showing this polling error and never sended again until i restarted the whole node-red.
does the bot not recover from polling errors after a longer time period?
do i have to work-around this or do you think a config option is missing?
thx
The text was updated successfully, but these errors were encountered: