You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/www/docs/contribute/99-troubleshooting.md
+80-1Lines changed: 80 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ sidebar_position: 99
9
9
:::info
10
10
This page lists frequently-asked questions and solutions to help troubleshoot common issues that may be encountered when building or testing the project.
11
11
:::
12
-
## `swa deploy`- Current Caveat
12
+
## `swa deploy`fails with no logs
13
13
14
14
### Context
15
15
@@ -41,4 +41,83 @@ In order to avoid this issue, you have a few options:
41
41
4. Manually provide `--client-id`, `--client-secret`, `--app-name` and `--resource-group`.
42
42
43
43
44
+
## `Unable to download StaticSitesClient binary (File Not Found 404 - 403)`
45
+
46
+
### Context
47
+
48
+
SWA CLI uses an external binary `StaticSitesClient` to deploy apps to Azure Static Web Apps. This binary is downloaded on demand when users run `swa deploy` for the first time. SWA CLI then detects the host OS in order to download the right binary version from https://swalocaldeploy.azureedge.net/downloads/versions.json.
49
+
50
+
It can happen that the host firewall can block downloading these binaries. If users can't configure the firewall rules to allow SWA CLI accessing https://swalocaldeploy.azureedge.net/, as a workaround, they can manually download `StaticSitesClient`.
"checksum": SH256 CHECKSUM OF THE BINARY SEE BELOW
101
+
}
102
+
```
103
+
104
+
**IMPORTANT: Make sure the `StaticSitesClient.json#checksum` and `StaticSitesClient.json#metadata.files.[OS].sha` values match!**
105
+
6. For Linux and macOS, run `chmod +x /home/USER/.swa/deploy/1.0.020761/StaticSitesClient`
106
+
7. Run `swa deploy --verbose silly` and make sure `SWA_CLI_DEPLOY_BINARY` is set correctly. If everything was configured correctly, the deploy should work.
0 commit comments