404 if another process is started on the same port
See original GitHub issueI followed the simple example with a db.json and ran json-server --watch db.json
. Everything seemed to work fine but I ran into 404s when trying to access any route (ie: http://localhost:3000).
Turns out I had another process running on port 3000.
The console did not throw any error though.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
404 Page while running Spring and angular in same port
What is happening. When deploying your application and copying your ressources inside the src/main/ressources folder, you then expect Spring ...
Read more >Receiving 404 error going through the webserver on port 80
This means the request processes will have no routing information, so requests will get 404's.
Read more >Tomcat 404 Error While Listening on Port 80 - EV Technologies
This was our first indication that something in the Windows Update caused another Windows Service to begin to listen on port 80. This...
Read more >How to I prevent another process from listening on the same ...
So a developer untar's Tomcat, starts it up, and then I notice I'm getting Tomcat 404 errors instead of Apache content.
Read more >The RevoDeployR Management Console returns a 404 error?
A likely cause of this is a problem with hostname resolution on the DeployR server. Verify that the server has a static ip...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If something else is running on a specific port used by a cli app, most others (that I’ve come across) either:
Either of these seem like reasonable approaches, with the second being my preference.
@jacobwarduk Just trying to provide a solution as I didn’t know your environment/setup 😃