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
Default proxy setting is not working for SWA CLI and still download metadata for StaticSitesClient from internet after downloaded & manually configured StaticSitesClient.json
#911
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
[Yes ] Yes, I am accessing the CLI from port :4280
Make sure you are accessing the URL printed in the console when running swa start!
swa start
Welcome to Azure Static Web Apps CLI (2.0.2)
***********************************************************************
* WARNING: This emulator may not match the cloud environment exactly. *
* Always deploy and test your app in Azure. *
***********************************************************************
Serving static content:
/home/aaaa
Azure Static Web Apps emulator started at http://localhost:4280. Press CTRL+C to exit.
ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly
Yes
Describe the bug
We are trying to deploy static web app from azure vm acting as azure devops agent. Thus, from azure pipeline we are running swa deploy command. Our vm is behind proxy,
However when running swa deploy command its still going to download metadata and failing while deployment
2025-01-06T12:14:18.8438630Z Fetching release metadata for version: stable. Please wait...
2025-01-06T12:14:18.8442385Z GET https://aka.ms/swalocaldeploy
2025-01-06T12:14:18.9487549Z Could not find release metadata; returning undefined
2025-01-06T12:14:18.9494834Z ✖
2025-01-06T12:14:18.9499827Z ✖ Deployment Failed :(
2025-01-06T12:14:18.9504798Z ✖ Deployment Failure Reason: Could not load StaticSitesClient metadata from remote. Please check your internet connection.
2025-01-06T12:14:18.9507266Z ✖ For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/azure/static-web-apps/
2025-01-06T12:14:18.9510175Z
We have setup HTTP_PROXY & HTTPS_PROXY as well before running SWA cli commands. But somehow it seems SWA commands are not considering these proxy settings.
Because, manually directly from machine when getting from this url using curl command then able to download. ex.
swa --version
2.0.2
Are you accessing the CLI from the default port
:4280
?--port
) and accessing the CLI from that port:4280
ℹ️ NOTE: Make sure to enable debug logs when running any
swa
commands using--verbose=silly
Yes
Describe the bug
We are trying to deploy static web app from azure vm acting as azure devops agent. Thus, from azure pipeline we are running
swa deploy
command. Our vm is behind proxy,hence when running swa cli command its not able to download StaticSitesClient directly. As per https://azure.github.io/static-web-apps-cli/docs/contribute/Troubleshooting#unable-to-download-staticsitesclient-binary-file-not-found-404---403 we have downloaded manually, kept under user home dir. as per suggested path and along with created .json file
However when running swa deploy command its still going to download metadata and failing while deployment
We have setup HTTP_PROXY & HTTPS_PROXY as well before running SWA cli commands. But somehow it seems SWA commands are not considering these proxy settings.
Because, manually directly from machine when getting from this url using curl command then able to download. ex.
Expected behavior
The text was updated successfully, but these errors were encountered: