-
-
Notifications
You must be signed in to change notification settings - Fork 955
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
solve the pending_update_count problem #709
Comments
It means that Telegram had no answer from your bot in appropriate time. |
You can see response web hook and response time.
I thinks everything is normal. Also, any messages logs will not appear in debug, update, error log file. This means that the request from the telegram falls to my server. So it can not be a problem with the problem of the answer from my robot. |
I test execution time of core my bot:
So, the time ~11s is very long. this caused because the request to another server for generate photos. Maybe the problem is this. I find this docs from another project: http://telegram-bot-sdk.readthedocs.io/en/stable/usage/timeouts/ that talk about timeout and increase it... Now what's the method for manage timeout in currect project? Why there is not any API reference?! |
We don't specify any timeout in the library, so it should wait as long as the maximum script execution time defined by your PHP installation. You can set a custom timeout in your hook (before Request::setClient(new \GuzzleHttp\Client([
'base_uri' => 'https://api.telegram.org',
'timeout' => 120, // in seconds
])); I suggest you optimise your application to process requests better. |
I try it, but when call
or
And so the bot does not response me. |
Use |
@noplanman I try it before, as you can see the second error message in above. |
What version of the bot are you on? Maybe you need to upgrade to have the |
I update and don't get error in hook.
I create this sample command, but don't response from bot:
I thinks must clear and empty |
@NabiKAZ Have you been able to fix this? Maybe it was a temporary issue with the Telegram servers? |
Thanks for following issue again. 💘 |
Hmm, so strange 🤔 Well, I'll close off here, as this doesn't seem to be a library issue. Not really sure what other suggestions I can give you to try, that might help solve this, sorry! |
I have two robots on the server and one works well, and another freeze and don't response!
Certainly the config server is same for both.
I was check the
https://api.telegram.org/bot.............../getWebhookInfo
URL, and was results:I see
pending_update_count
was37
.In another test, I was test this script for my both robots: https://github.com/php-telegram-bot/core/wiki/Bots-watchdog
And my watchdog return:
After this test script, it is not told how this problem can be solved. to robot is going up again.
And about
Connection timed out
, I try to turn off firewall on the server. and so I test by host-tracker.com and was see return200(OK)
from40
nodes.How can I solve it?
The text was updated successfully, but these errors were encountered: