Azure / Azure/static-web-apps-cli

Still Could not load StaticSitesClient metadata from remote after 2.0.4

Open
#939 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
668
Forks
156
PR merge metrics
No merged PRs in 30d

Description

Before filing this issue, please ensure you're using the latest CLI by running `swa --version` and comparing to the latest version on [npm](https://www.npmjs.com/package/@azure/static-web-apps-cli).

**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`

**Describe the bug**
A clear and concise description of what the bug is.
I'm on 2.0.4, latest at this date, trying to deploy an angular app on a SWA using CLI and still have "Could not load StaticSitesClient metadata from remote." error.

And I don't find how to fix it.

![Image](https://github.com/user-attachments/assets/8c47975b-8235-440a-af7f-a51be3f77724)

I'm using SWA CLI through an org proxy that I did setup in HTTP/S_PROXY variables and I can see it being used in the logs "Using proxy: ".

**To Reproduce**
I successfully followed the SWA documentation up to this point :
swa deploy --deployment-token

And then I have the error in the screen above.

**Expected behavior**
Success message or more precise on how to fix this issue.

**Desktop (please complete the following information):**

- OS: Win11
- Version: 23H2

I already read the previous post of past weeks but still could not manage to make it work.

Thanks for your help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.