Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
331 stars 57 forks source link

Deployment fails with timeout #1515

Open vsesh opened 4 months ago

vsesh commented 4 months ago

Describe the bug

Hello. I can't deploy a new version of my service due to a timeout error.

image

After the first error, the production environment stayed in the "Uploading" state. And keep in the state for the last 10 hours.

image

What I can do?

cidthecoatrack commented 3 months ago

I am having the same issue. First deployment worked, second deployment hangs.

val-jesperballe commented 3 months ago

We have same issue. Do we have any news? Have we created azure support tickets or anything?

PerKortbek commented 2 months ago

We are having the same issue. image

mz8i commented 2 months ago

Perhaps unrelated depending on your setup (I think it's mostly related to Next.js hybrid apps), but check if the reason might be the /.swa/health.html health check not working

Touzi-Mortadha commented 1 month ago

Sometimes, if you have configured a redirection in your middleware (for example Next.js Middleware) and it's not properly configured, you might encounter a timeout error. Try removing the middleware, and if the deployment succeeds, you should revisit and correct the middleware configuration.

cidthecoatrack commented 1 month ago

I'll chime in that at least for my case, after retrying 3 times with no other code changes, it eventually succeeded. I'm going to add retries to my pipeline for now, but because there were no code changes (and I am not using Next.js, just Angular), I assume the issue is not code-related, but something lower level that is seemingly random.