microsoft / microsoft/vscode-azurestaticwebapps

SWA Create fails when branch has branch protections preventing commits

Open
#305 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tracking
Dominant language
TypeScript
Stars
99
Forks
39
Avg merge
3d 7h
Merged PRs (30d)
2

Description

Does this occur consistently? Yes
Repro steps:

  1. Follow the steps here - https://docs.microsoft.com/en-us/azure/static-web-apps/getting-started?tabs=vanilla-javascript
  2. Complete steps in Wizard
  3. process fails and extension reports Server 500 error

Action: staticWebApps.createStaticWebApp
Error type: 500
Error Message: An error has occurred.

Version: 0.5.0
OS: win32
OS Release: 10.0.19042
Product: Visual Studio Code
Product Version: 1.53.2
Language: en

Call Stack
new RestError extension.bundle.js:48:64839
extension.bundle.js:48:1490514extension.bundle.js:48:1490514
processTicksAndRejections task_queues.js:97:5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the linked Azure Static Web Apps getting-started guide, with branch protections enabled, and the staticWebApps.createStaticWebApp action. Start by tracing the extension's handling of the reported Server 500 response; done means this scenario no longer fails with an opaque 500 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript, vscode
Domain
cloud, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.