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
For a few days now we have started to observe intermittent 503 errors in all 3 of our main Azure Static Web Apps. The errors seem to come in brief bursts around cold starts, but weirdly requests before them and after them will succeed so its not purely the function app not running yet.
We recently updated everything to .NET 8, and switched on ReadyToRun publishing. We are deploying using the SWA CLI to allow us to build on the windows GitHub agent.
Steps to reproduce the behavior:
Create a .NET 8 function app with readytorun enabled
Create the github actions file to deploy the function app to azure static web apps
When the app first starts up, a few requests respond with 503's
My github action:
` - name: 'Build all the things'
shell: bash
run: |
cd Product
cd Product.Api
dotnet publish -c Release -r win-x64 -o ./output &
cd ..
cd ..
cd ./Product.Components
npm install && npm run build &
cd ..
cd ./Product
npm install && npm run build &
cd ..
npm install -g @azure/static-web-apps-cli
sleep 10
For a few days now we have started to observe intermittent 503 errors in all 3 of our main Azure Static Web Apps. The errors seem to come in brief bursts around cold starts, but weirdly requests before them and after them will succeed so its not purely the function app not running yet.
We recently updated everything to .NET 8, and switched on ReadyToRun publishing. We are deploying using the SWA CLI to allow us to build on the windows GitHub agent.
Steps to reproduce the behavior:
My github action: ` - name: 'Build all the things' shell: bash run: | cd Product cd Product.Api dotnet publish -c Release -r win-x64 -o ./output & cd .. cd .. cd ./Product.Components npm install && npm run build & cd .. cd ./Product npm install && npm run build & cd .. npm install -g @azure/static-web-apps-cli sleep 10
Expected behavior No 503's should be fired on start