Azure / Azure/static-web-apps-cli

Swa deploy fails with an unknown exception has occurred

Aperta
#500 10 commenti 0 reazioni 1 assegnatario Assegnata a @Reshmi-Sriram Vedi su GitHub
command: deploy scope: deploy-client status: investigating
Lingua principale
TypeScript
Stelle
668
Fork
156
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Running `swa deploy` always fails with:

```
Welcome to Azure Static Web Apps CLI (1.0.1)

Deploying front-end files from folder:
/private_path/Client/bin/publish/wwwroot

Deploying API from folder:
/private_path/Api

Checking Azure session...
✔ Successfully logged into Azure!

Checking project settings...
✔ Choose your Static Web App › app-rg/app-test
✔ Successfully setup project!

Deploying to environment: production


Found configuration file:
/private_path/Client/staticwebapp.config.json

Deploying project to Azure Static Web Apps...
✖ Failed to contact content server, stopping...
✖ An unknown exception has occurred
```

It manages to create the resource in Azure

**To Reproduce**
Steps to reproduce the behavior:

Running `swa deploy` with either `swa-cli.config.json` or manual parameters.

**Expected behavior**
Correct resources should be created and the app deployed.

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

- OS: Ubuntu 22.04

**Additional context**

It's a blazor app with C# V4 functions Api.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.