Azure / Azure/static-web-apps

Unable to deploy app: "Request is missing the pull request id."

Open
#1,435 5 comments 9 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Can't deploy a simple html and css file from a local folder, because of "Request is missing the pull request id.".

**To Reproduce**
```ps
swa deploy --deployment-token REDACTED
```

Response:
```
Welcome to Azure Static Web Apps CLI (1.1.7)

***********************************************************************
* WARNING: Running in dry run mode. This project will not be deployed *
***********************************************************************

Deploying front-end files from folder:
C:\REDACTED\dist

Consider providing api-language and version using --api-language and --api-version flags,
otherwise default values apiLanguage: node and apiVersion: 16 will apply

Deploying to environment: preview

Deploying project to Azure Static Web Apps...
ℹ DeploymentId: 03ad169d-dbd7-4138-a766-141de4c4afca
ℹ Looking for event info
ℹ The content server has rejected the request with: BadRequest
ℹ Reason: Request is missing the pull request id.
ℹ For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
ℹ If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
```

(Note: only the dry run shows any error, otherwise the app exits without any feedback. Azure/static-web-apps-cli#816)

Azure Portal still shows "Uploading":

![image](https://github.com/Azure/static-web-apps/assets/9047283/5d8df24a-5100-451c-bbf2-907d3b368f96)

**Expected behavior**
Be able to deploy a hello world level app.

**Device info (if applicable):**
- SWA: 1.1.7
- OS: Windows 11 23H2 22631.3296
- Node: 20.5.0

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.