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 to restart the project. Clicking “run” on the replit editor ALSO fails to start the project. I need to “kill 1” in the console to allow the project to start again.
Here’s the error:
Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (node:net:1485:16)
at listenInCluster (node:net:1533:12)
at Server.listen (node:net:1621:7)