B
B
Bogdan Spinner2018-07-30 12:03:28
Python
Bogdan Spinner, 2018-07-30 12:03:28

Why does Timeout was reached occur in callback api in VK?

Good afternoon.
There is a bot for VK, to which about 200-400 people write per minute.
When a new message arrives, it adds it as a task to celery and immediately responds with 200 ok.
thus, the response to the callback is almost instantaneous.
But, very often in errors we get timeout was reached.
5b5ed3b01a443944052066.png
I don't know how to deal with it, how to deal with it, and how to track down why this is happening. In theory, this should not be, because when a new message is received, the bot throws it into the queue for processing.
another problem is when there are too many such errors, then VKontakte stops sending notifications and the bot is idle
as a framework using flask, everything works in a docker container and a redis broker

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question