Hi, I’m frequently encountering the error “connect ECONNREFUSED 127.0.0.1:3000” in my local development environment. The setup was working fine yesterday, but when I start the server today using npm start, the issue arises. Interestingly, if I revert all the changes I’ve made, the server sometimes starts working again. Can someone assist me in resolving this? This is impacting my local development progress.
Hi Abdul, I have forked and cloned the GitHub repository to my local machine, and I’m working on it locally. The issue occurs when I start the server using npm start. I’m not using a GitHub Codespace or any cloud-based development environment; this is purely a local setup.
usually when that error occurs you have something listenting to port 3000 that’s why, maybe it is a previous run of Activepieces, if you are on linux, you can list the process on port 3000 and kill it.
I ran the command on Linux to check the availability of port 3000, and it is confirmed that port 3000 is free. However, despite the port being available, we are still encountering the error.
Previously, I worked on a Linux VM and faced the same issue, so I switched to Windows and started using WSL. However, the issue persists on both setups. I’ve tried restarting the machine and running npm install followed by npm start, but the problem still persists.
Hi Abdul, just to update you, after creating the simple HTTP server, I terminated its process using the command kill ProcessId. The main server is now up and running without the ECONNREFUSED issue.