ECONNREFUSED Error When Calling Mendix API from Postman

Hi everyone,

I have created a Mendix REST API to deactivate a user with a POST request. I’m trying to test it with Postman, but I’m getting a persistent network error and cannot connect.

The error I’m receiving is: Error: connect ECONNREFUSED 127.0.0.1:8080

I have already performed the following troubleshooting steps:

  • Confirmed the correct URL and port number in Postman.

  • Re-ran the Mendix application to ensure it is running.

  • Checked for errors in the Mendix console after the app has finished deploying.

I’m confident the API is configured correctly, but I am still unable to connect to it. What could be causing this persistent ECONNREFUSED error, and what are the next steps to troubleshoot this?

Thank you for your help!