S
S
S1ntel2017-07-04 12:52:13
In contact with
S1ntel, 2017-07-04 12:52:13

Why, when sending a message to the Vkontakte group, the callback api sends the ego periodically again instead of one request?

When a message is sent, a request is sent to the server. Then comes the answer. But since instead of one request, VK sends the ego again for reasons I do not understand. And the answer comes every time and spam is obtained. Also return unsuccessful requests come with an error: "incorrect response text" but the answer comes. Can you help me figure out why requests/responses are being spammed?
error screen.54d1683d5b454afda0013bcefdb7ee4e.JPG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2017-07-04
@S1ntel

Your server must respond with two "ok" characters with status 200. Otherwise, VK will send the request again.

Please note that after receiving a notification, your server should return the string "ok" and HTTP status 200. If the server returns an error several times in a row, the Callback API will temporarily stop sending notifications to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question