Status shown failed but in console log deployed successfully & server is up.
Image for your referance
app url
On Render, if your app is configured for a health check and it does not receive a response code between 200 - 399, it will fail... so the deployment will fail as well.
https://render.com/docs/deploys#health-checks
In my Node/Express app on Render, I was able to get a successful deployment by doing this in my server.js file:
app.get('/', (req, res) => {
res.sendStatus(200)
})
For context, I'm using Render to host a Google reCAPTCHA validator. I don't need to load anything on the homepage, so just sending the status code was enough (https://github.com/markhillard/invisible-recaptcha-validator).
By sending the status code directly to where the health check was running (in my case it's the root directory: /
), it was able to receive a 200 "OK" status and then the deployment finally went "Live".
I'm not sure if this will help your particular situation, but maybe it's worth a shot to try this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With