Failed to load resource: net::ERR_CONNECTION_RESET

I try to deploy my nodejs app. It listens on 3000 port. Also nginx does mapping of 80th port to my app on 3000. The problem - when I open browser, and hit my ip address the page loads html and css, but all javascript files throw this failed to load error. I tried to turn off nginx and firewall and link my app to 80th port directly, but I get the same error. Only javascript files fail to load.

Also I looked in my nodejs app logs, there are GET requests for html and css, but no get requests for js files. Like these requests never arrive to nodejs but get blocked somewhere in-between.

I need help.



On other ports my app works ok, like 81st port, 3000 port, but on 80th port I have this trouble with javascript files even with firewall off. Does anyone know what can block them?

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @alona2156,

What is the exact error that you see in your web console?

Also, are you seeing any errors in your Nginx error log:

  1. tail -100 /var/log/nginx/error.log

Feel free to share your exact Nginx config here so that I could try to advise you further.

Regards, Bobby