I have created a simple Mendix app with a REST API in my local environment. When attempting to send GET or POST requests using Postman, Thunder Client, or from another Mendix app, I can successfully access the data. However, when attempting to use the built-in fetch function in JS or Axios, I am encountering an 'ECONNREFUSED' error. I only have one app running on the port to which I am attempting to send the request, and as mentioned previously, I am able to successfully access the data using other methods such as Postman, another Mendix app, or a browser. Despite my efforts, I have not been able to find a solution to this issue. Thank you in advance for any responses, and if I am able to find a solution, I will be sure to update this post.
Are you running a http proxy on your computer?