Im making a discord bot, and all of sudden the bot started sending messages twice, from experiment i found out: the code running when it’s not supposed to be running is an older version of the code (if i make a line of code it doesnt have that line) and idk how to stop that
Bug appears at this link:
Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/22.214.171.124 Safari/537.36
Replit Profile: https://replit.com/@lggportella
You can delete or comment old code so it doesnt run anymore. With python you use
Welcome to Ask! Several people have had Replit run their projects twice recently; I don’t think Replit was able to reproduce the issue. If you can find a solid way to reproduce it maybe Replit can fix the bug.
There seems to be a bug where I have multiple instances of a repl running somehow. This is a very basic understanding of what seems to be happening. Basically my repl runs a local flask server. I first noticed the issue when I saw that I would occasionally get an error upon starting my server saying that the port is already in use - I never got an error like this before the restoration efforts. Now, I will occasionally load my repl editor and see that the server is not running but I can stil…
My project have been facing the eaddrinuse issue more frequently. I noticed that even though the project is running, replit sometimes wrongly thinks that it is not, and runs the replit project again, resulting in the eaddrinuse error.
This error has never happened until the recent UI changes. The error not only happens when u run the project from the editor, but also when you run the project using a pinging bot.
When the eaddrinuse issue occurs, the project stops running. Pinging service fails…
Yes I’m aware, but even if the code is not running, this older version continues working. The problem is not in the code (I believe), it feels like an old backup that is still running
While the recent issue doesn’t have a true fix currently, running
kill 1 in the Repl’s
Shell tab will force a Repl restart, and will kill the old and new processes.
i see, useful to know, I’ve changed the token so now it works fine, guess i can just do that if it happens again
Please let us know if you have any further issues and we’ll be happy to help!