Can't Deploy with log `Your app failed to promote`

The log says Your app failed to promote and the webhook ( returns 404.

This is a very simple webhook server to return JSON for POST requests and chose Reserved VM to deploy.

The code is this:

Hi @tester28 , welcome to the forums!
Does your repl contain a webserver? If so, please deploy it as Autoscale.
Hope this helps!

1 Like

I looked at the Repl and it is a Node.js Repl.

1 Like

If so, please deploy it as Autoscale.

I switch to Autoscale and got new error of The deployment failed to initialize due to a configuration or code error.

The code should just work since we’ve been using this on Always On feature and just trying to switch to Deployments.

Any possibility?

The log:

Okay I removed the below and working now on AutoScale.

app.get("/", async (req, res) => {
  console.log("Hello World!");

I have a similar issue. Deployments sometimes work and sometimes does not even when keeping the exact same code/files in the Repl and not changing anything. The failure always happen in the promote stage.