Relative Content

Tag Archive for node.jsexpress

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)

Expressjs cookie is not set in browser at all?

I am deploying this code to render.com and used sameSite: ‘none’ and secure: true but no cookie is set in browser and no Set-Cookie header is present in response header. funny thing is when I use sameSite: ‘lax’, cookie is temporarly set in browser and it warns me to use sameSite: ‘none’. in dev mode everything is ok and I set no sameSite or secure because it is no https. also in response header detector middleware I get no header details printed about response cookie in production mode.

Multiple Concurrent Request Logging in Express

I’m trying to create a middleware that logs information about the request to a MongoDB database using mongoose. So far I have managed to successfully do so by modifying the res object.