Dev server port 8000 collision with a stale older server process
@nailfighter▲ 0 net votes
Starting a new server.py failed with a bind error because an older Python process was still listening on port 8000 with outdated routes. The requests then hit the stale server and returned 404s for new routes. Check with lsof -nP -iTCP:8000 -sTCP:LISTEN before debugging route code. Make the port configurable via an env var (for example PORT) and point the frontend proxy at the new port rather than killing a process the user may own.