I got a bot made in nodejs (expressjs) and hosted on my private VPS, I encounter a bug with HTTP request made with superagent lib.
When there is a long period of inactivity, the nodejs server is like in "sleep mode", and the first request is always an error caught in my try/catch, the error look like this :
I got another bot hosted on heroku but I don't have this error, it seems it's maybe my VPS/Apache proxy ?
After the first request, when I made a new one, it works as expected. It's like my server is in "sleep mode" and the first request tell him to wake up.
Thanks for your answers.