You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example. No success or error returned, no exception is thrown, no logs produced, "SENT!" line is never reached. Basically everything just hangs on Tele.sendMessage line. Telegram Bot API might not support nested HTML tags, but in this case I expect some sort of exception. Current behaviour might be caused by the way how exceptions are handled inside servant client, but I don't know how to debug or fix it properly.
I was manage to reach some limited success with decreasing Manager timeout. For example this env setup works ok, and gives timeout exception in case Telegram API does not reply (for whatever reason):
man <-Http.newManager
$Http.tlsManagerSettings
{ Http.managerResponseTimeout =Http.responseTimeoutMicro 20_000_000
}
pusher <-Tele.startBotAsync teleBot
.Servant.mkClientEnv man
.Tele.botBaseUrl
.Tele.Token$ token
However, if I increase timeout just a bit more to ~ 25.9 seconds, it behaves badly again, and never throw timeout exception. Might be this strange behavioural shift related to this line somehow? Any ideas for a good fix?
Example. No success or error returned, no exception is thrown, no logs produced, "SENT!" line is never reached. Basically everything just hangs on
Tele.sendMessage
line. Telegram Bot API might not support nested HTML tags, but in this case I expect some sort of exception. Current behaviour might be caused by the way how exceptions are handled inside servant client, but I don't know how to debug or fix it properly.The text was updated successfully, but these errors were encountered: