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.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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