Closed Ifiht closed 1 year ago
Hi @Ifiht,
looks like it's just a network issue and not related to this gem. I suggest you to rescue Faraday::TimeoutError
and try to make request again. Something like this: https://github.com/atipugin/telegram-bot-ruby/blob/master/lib/telegram/bot/client.rb#L31-L40
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
@atipugin thanks for the suggestion, I was hoping to fix the problem and update here but haven't been able to find time to test - closing for now but if I find anything that could help the gem I'll post back.
This issue is very sporadic, but today it happened twice within only 7 hours. Probably the only reason I notice is because I run my telegram bot using PM2, and I get alerts anytime it restarts without manual interaction.
These restarts are happening at times when the bot is not receiving any inputs from either chat users or the machine it lives on. Here's the full error log:
Seems like there may be an issue between the ruby libraries and Telegram when run for an extended period of time? Is this something anyone else is seeing, could it be handled in the bot code?