node.js - Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs

node.js – Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs

node.js – Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs

Failed to load resource: net::ERR_CONNECTION_REFUSED : :3000/contact/send:1

Your error means your client application is Unable to connect to your nodejs server.

Fix

Your code :

const uri = http://localhost:3000/contact/send;

Will work if nodejs server is running on port 3000 on localhost.

node.js – Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs

Related posts on node js :

Leave a Reply

Your email address will not be published.