Replies: 8 comments 5 replies
-
|
I use apprise in all of my scripts, never heard or seen this issue, there must be something wrong with your setup.. or type of apprise notification is not stable. |
Beta Was this translation helpful? Give feedback.
-
|
Telegram is the most used type so if the telegram channel is unique and only used by the script this shall not be the issue.. What is important that the scripts push msgs to a queue which get emptied when loop of script is completely run. So watch for any non apprise related errors or delays when script is run, it maybe disturb or delay sending queue. |
Beta Was this translation helpful? Give feedback.
-
|
I have spent the last day searching for the error on Google with not much luck. It looks like the best solution would be to check for the error message and then retry the connection again if needed. Can you clue me into what file or files control the POST to the Telegram URL? I'm not adverse to digging around and fixing it myself if this is not an issue for others. I can hack existing code until it works using trial and error, but I don't know what file(s) I should be looking to add the check and retry. Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
There is another Python Telegram project on github here: python-telegram-bot/python-telegram-bot#1773 That is having the same issue described as: [ConnectionResetError - An existing connection was forcibly closed by the remote host] The author came up with a temporary fix: I fixed the issue by requesting to the server again. It prints the network error once and then on the 2nd iteration (requesting again), it works. It required me adding a while loop. Here's the code: This is the closest I have come thus far and although the coding would need to be changed it's a start. I still can't find the file to add a loop myself. Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Like I said I use the same apprise code in all of my scripts and have never seen this problem myself or heard about it. Does it look like below, all on one line? (I changed some numbers) You can see I added the part suggested by apprise when you first run it. 6887777111:BBHf4yYuveogDVcqHdguqvvWSn2CIaWDazw = bot_token |
Beta Was this translation helpful? Give feedback.
-
|
I fixed my issue by editing NotifyTelegram.py. Notification gets sent successfully after first failed try now. |
Beta Was this translation helpful? Give feedback.
-
|
Care to share what you changed? |
Beta Was this translation helpful? Give feedback.
-
|
Strange issue. I've also multiple scripts running without problems. I think the while loop was added to retry on failure? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
After seeing approximately 33-50% of my Telegram notifications fail while running the scripts, are there any settings to retry the Apprise notifications upon failure instead of doing nothing?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions