J
J
Just1n2019-12-13 16:21:00
Python
Just1n, 2019-12-13 16:21:00

Why does pythonanywhere respond multiple times?

There is a bot on pythonanywhere but it replies multiple times. The previous bot also replied many times, although there should be one. Anyone have any ideas why this is happening? I checked it on my computer and on Heroku, it answers once, only on pythonanywhere such garbage
5df38fc6d1875885229275.png
5df3903543869740426851.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mashincode, 2019-12-14
@Just1n

I also had this, I love PA, but I didn’t solve the problem, I had to transfer the project to Digital Ocean, I still didn’t understand what the trouble was, although I tried many options, the only thing I can suggest is to put a stub (while looking for what the problem is ) in the form of logging the request id to the server and checking whether there was such a request before, I received two requests from one user (and only in some cases of using the bot), respectively, I processed one, wrote it to the log file, and killed the second

E
Erik Mikoyan, 2019-12-13
@erik_mikoyan

If the server did not return "ok" within a certain time, then the VC sends the request again. Either your bot is taking too long to respond, or your server is simply not responding "ok"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question