FetchError: request to http://localhost:3000/api/projects failed, reason: connect ECONNREFUSED 127.0.0.1:3000 (Express/Next.Js)
This happens because you want to run an application on a port which is already being used.
you can check the application running on a port with these commands:
For macOS El Capitan and newer (or if your netstat doesn't support -p), use lsofsudo lsof -i tcp:3000 For Centos 7 usenetstat -vanp --tcp | grep 3000Also if wnat to kill any process you can usekill -9 `PID`when port is empty you try your application by rebuilding it should work