I have the simplest Node.js API running, with a /health
endpoint that only returns 200 OK.
After a deploy is ran, it keeps waiting… and then after 15 minutes, the deploy failed.
I double checked the logs, nothing.
I also double checked the health endpoint setting which is set to /health
Sometimes it works, sometimes it doesn’t.
Please help out.
This is the code:
import http from 'http'
const server = http.createServer((req, res) => {
res.writeHead(200)
res.end()
})
server.listen(process.env.PORT || 4000)