Cannot POST /api/signup in Express.js application despite route configuration
Problem:
I am building an Express.js application with a /signup endpoint under the /api route. However, when I try to POST to /api/signup, I receive a Cannot POST /api/signup error in response.
req.body is being empty
req.body is being empty for only /api/login and /api/signup but working fine for other routes.Checked everything, and everything looks good but still this. already used parsers as other routes are working fine. I have sent the req to /api/login from frontend using axios but it is returning missing fields.
Express next is not a function [closed]
Closed 2 days ago.
Unable to access local Node.js server externally
I’ve set up a local Node.js server using Express, and I’m trying to make it accessible from outside my local network. Here are the details of my setup:
Unable to access local Node.js server externally
I’ve set up a local Node.js server using Express, and I’m trying to make it accessible from outside my local network. Here are the details of my setup:
Express Error middleware doesn’t catching errors
I have the following update endpoint which set some important metrics. It works fine, but some times it makes errors and then the app is crashed even through I’ve configured error middleware.
Express Error middleware doesn’t catching errors
I have the following update endpoint which set some important metrics. It works fine, but some times it makes errors and then the app is crashed even through I’ve configured error middleware.
node server (express.js) can’t make external API request after a while
(sorry for bad english) I have a web server in node.js (express.js), and in one route I make a external API request (POST), parse response, and send back as route response. It works ok for a while, but after 45-60 minutes of no calling that route, external API request won’t respond, and got timeout error (try/catch)
node server (express.js) can’t make external API request after a while
(sorry for bad english) I have a web server in node.js (express.js), and in one route I make a external API request (POST), parse response, and send back as route response. It works ok for a while, but after 45-60 minutes of no calling that route, external API request won’t respond, and got timeout error (try/catch)
node server (express.js) can’t make external API request after a while
(sorry for bad english) I have a web server in node.js (express.js), and in one route I make a external API request (POST), parse response, and send back as route response. It works ok for a while, but after 45-60 minutes of no calling that route, external API request won’t respond, and got timeout error (try/catch)