File not found (403) - Downloading https://swalocaldeploy.azureedge.net/downloads/1.0.020761/windows/StaticSitesClient.exe@1.0.020761
See original GitHub issueBefore filing this issue, please ensure you’re using the latest CLI by running swa --version
and comparing to the latest version on npm.
Are you accessing the CLI from the default port :4280
?
- No, I am using a different port number (
--port
) and accessing the CLI from that port - [ X] Yes, I am accessing the CLI from port
:4280
Make sure you are accessing the URL printed in the console when running
swa start
!
ℹ️ NOTE: Make sure to enable debug logs when running any swa
commands using --verbose=silly
Describe the bug A clear and concise description of what the bug is. Console output
Deploying to environment: production
Deploying project to Azure Static Web Apps...
StaticSitesClient is outdated! Expected 1.0.020761, got 1.0.019361
[swa] ✖ Downloading https://swalocaldeploy.azureedge.net/downloads/1.0.020761/windows/StaticSitesClient.exe@1.0.020761
✖
✖ Deployment Failed :(
✖ Deployment Failure Reason: Failed to download StaticSitesClient binary. File not found (403)
✖ For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/azure/static-web-apps/
✖ If you believe this behavior is unexpected, please raise a GitHub issue at:
https://github.com/Azure/static-web-apps-cli/issues/new/choose
To Reproduce Steps to reproduce the behavior:
- swa deploy ./dist/ -n NAME --env production --deployment-token TOKEN
The given url https://swalocaldeploy.azureedge.net/downloads/1.0.020761/windows/StaticSitesClient.exe@1.0.020761 gives me
<Error>
<Code>BlobNotFound</Code>
<Message>The specified blob does not exist. RequestId:5bc7a37a-201e-00a4-17d3-d3add7000000 Time:2022-09-29T07:16:06.4365437Z</Message>
</Error>
Expected behavior A clear and concise description of what you expected to happen.
Deployment succeeded
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows 10
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thank you very much. I can confirm it works on my Windows 10.
Hi @kunukn , here is a temporary manual process to install the binary and use the binary. We will simplify it in the future.
NOTE: This is how the SWA CLI automatically downloads and configures the deploy binary
stable
JSON content, for eg:$HOME/.swa/deploy/VERSION/StaticSiteClient
(add.exe
for Windows). For eg:/home/USER/.swa/deploy/1.0.020761/StaticSiteClient
$HOME/.swa/deploy/StaticSitesClient.json
with the following content:For eg:
IMPORTANT: Make sure the
StaticSitesClient.json#checksum
andStaticSitesClient.json#metadata.files.[OS].sha
values match! 6. For Linux and macOS, runchmod +x /home/USER/.swa/deploy/1.0.020761/StaticSitesClient
7. Runswa deploy --verbose silly
and make sureSWA_CLI_DEPLOY_BINARY
is set correctly. If everything was configured correctly, the deploy should work.How to compute SHA256 checksum: