Skip to content

solve the pending_update_count problem #709

@NabiKAZ

Description

@NabiKAZ

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:

{"ok":true,"result":{"url":"https://......../hook.php","has_custom_certificate":false,"pending_update_count":37,"last_error_date":1511346679,"last_error_message":"Connection timed out","max_connections":40}}

I see pending_update_count was 37.

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:

.. @.................Bot: 37 pending updates;
2017-11-22 14:09:49: Connection timed out

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 return 200(OK) from 40 nodes.

How can I solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions