Topic: Contact form connection refused when trying to submit

ANDREA CAROLINA CAMACHO JULIO free asked 2 years ago


Hi, I am trying to follow this guide https://mdbootstrap.com/docs/angular/forms/contact/ for a contact form in my angular application. However, when I press the SEND button, I get this error message in Chrome: OPTIONS http://localhost:3000/send net::ERR_CONNECTION_REFUSED I'm not posting any code snippets because it's pretty much exactly like in the guide. In the server.js I start up the express server on port 3000 and when i am trying to start the server in terminal with "node server.js" i receive this error "GET http://localhost:4200/sockjs-node/info?t=1628271648973 net::ERR_CONNECTION_REFUSED" so both commands give me the same error. how can i solve this?


Arkadiusz Idzikowski staff commented 2 years ago

@ANDREA CAROLINA CAMACHO JULIO It looks like the backend server is not running. Did you start the Nodejs application as mentioned in the tutorial?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB4 11.1.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes