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
Python 3.10 SWA managed functions that implement streaming, intermittently fail to load on cold start. This issue does not occur with identical code/host.json in a self-managed consumption function app deployment, only when deployed as part of a SWA.
Due to startup failures clients frequently return 404 errors.
Application Insights shows that the functions are not always loaded
Describe the bug
Python 3.10 SWA managed functions that implement streaming, intermittently fail to load on cold start. This issue does not occur with identical code/host.json in a self-managed consumption function app deployment, only when deployed as part of a SWA.
Due to startup failures clients frequently return 404 errors.
Application Insights shows that the functions are not always loaded
App insights logs from failed startup:
To Reproduce Steps to reproduce the behavior:
function_app.py
requirements.txt
host.json
staticwebapp.config.json
environment variables
Expected behavior Managed python functions with steaming should load consistently, similar to self-managed consumption functions.
Additional context