Replit now crashes without any errors printed when a port is opened on an undefined port.
This caused me to spend over 3 hours debugging a testing issue, where my tests were exposing port 8099 but my .replit config was set for the dev server at port 3000.
Sometimes it’s not possible to know what port your tools are going to use, sometimes it’s dynamically exposed to localhost based on availability. In that case the port forwarding feature would not work or be unreliable. I often would prefer if localhost were not exposed to the public by default. As many tools expose debugging HTTP pages that I would rather not be made public, as it would compromise secrets and files, even on private Replit’s.
No crashes. Or at the very least provide a message on why it crashed.
Hard crash, no errors.
Steps to reproduce:
- Configure a port to forward to port 80
- Open another port
Bug appears at this link: