question

MikeHarper-4732 avatar image
0 Votes"
MikeHarper-4732 asked PramodValavala-MSFT commented

How do I diagnose 503 - Function host is not running (static web apps integrated functions)

I have a static web app with C# integrated functions. Everything runs fine locally using the static web app CLI.

The github actions build completes and the app is published but all my functions get 503 Function host is not running responses.
I've tried turning on application insights and looking around the SWA portal but I can't find error the source anywhere

My host.json is just the standard/default:

 {
     "version": "2.0",
     "logging": {
         "applicationInsights": {
             "samplingSettings": {
                 "isEnabled": true,
                 "excludedTypes": "Request"
             }
         }
     }
 }

I'm in the dark on what is causing the deployed run time error.

Thanks

azure-functionsazure-static-web-apps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MikeHarper-4732 This could happen for many reasons and one that is quite often is a missing app setting. Ensure you publish local settings as well.

If this doesn't help, try checking the streaming logs for errors.


0 Votes 0 ·

0 Answers