#
#
#yamynginx2020-03-01 21:48:09
PHP
#yamynginx, 2020-03-01 21:48:09

Why does the bot sometimes not respond?

Hello.
There is a chat bot on VK, written in PHP, ~10k requests per day, which is negligible for a server.
Sometimes I monitor unread messages and see that about 1 out of 1k requests are either not processed or not sent at all.
Why can't I see the error - because the last error was at 16:12, and CallbackAPI logging starts only at 21:45, that is, about 30-40 of the last requests are shown there.
The php logs are absolutely empty when error_reporting is set to E_ALL and display_errors = false.
Can VK simply not cope with requests and not send a request to the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Nedzvetsky, 2020-04-26
@muxui

You send a message using the messages.send method, it may return an error, log these errors and then you will find out the reason.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question