Relative Content

Tag Archive for node.jsexpress

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.

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)