static-web-apps-cli
static-web-apps-cli copied to clipboard
"Failure during content distribution" when deploying more than ~3000 files
Describe the bug
swa deploy times out after 300 seconds with the error message Failure during content distribution if the number of uploaded files surpasses ~3000 files.
To Reproduce Steps to reproduce the behavior:
- Produce more than 3000 files to upload to an SWA.
- Execute
swa deployto deploy the 3000+ files. - Notice how
Status: InProgress. Time: …is printed to the console 20 times. - Notice how the deployment ends after 5 minutes with the error message
Failure during content distribution.
Expected behavior I expect SWA to be able to upload more than ~3000 files. Either by allowing the timeout to be increased, or – preferably – by the SWA infrastructure simply working faster to distribute the files.
Screenshots
Desktop (please complete the following information):
- OS: macOS
- Version: 13.6.7
Additional context
- I use version 1.1.9 of
swa. - See the discussion in https://github.com/Azure/static-web-apps/issues/632#issuecomment-2179548456.