Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
325 stars 56 forks source link

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

Open Peter-Juhasz opened 6 months ago

Peter-Juhasz commented 6 months ago

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

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

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

Device info (if applicable):

Additional context Add any other context about the problem here.

khamkarsuraj commented 3 months ago

Hello, Any update on this issue? I am facing the same.

Persipaani commented 2 months ago

While this obviously should not happen, I have succeeded after running the swa deploy command in the parent folder of the folder that is being published. Also if someone stumbles here while trying to push database configs unsuccessfully, it seems that the staticwebapp.database.config.json should not be in the same folder where the swa deploy command is being ran.

Edit: forgot to mention that I got "Unknown error" when running with silly verbose logs and with dry-run same error as OP.