C
C#5d ago
Jimenemex

Azure SWA Github Action failure

I have a static web app that I want to just serve an index.html, but my github action is failing with: 2025-01-01T07:49:26.9203515Z : The content server has rejected the request with: BadRequest 2025-01-01T07:49:26.9204633Z: Reason: No matching Static Web App was found or the api key was invalid. However I've set my github repository secret AZURE_STATIC_WEB_APPS_API_TOKEN to the deployment token in my static web app. What else could be the problem? My workflow file was taken from here - https://github.com/actions/starter-workflows/blob/main/deployments/azure-staticwebapp.yml With:
app_location: "/" # My index.html is just in the root of the repo
api_location: ""
app_artifact_location: ""
app_location: "/" # My index.html is just in the root of the repo
api_location: ""
app_artifact_location: ""
GitHub
starter-workflows/deployments/azure-staticwebapp.yml at main · acti...
Accelerating new GitHub Actions workflows . Contribute to actions/starter-workflows development by creating an account on GitHub.
2 Replies
Jimenemex
JimenemexOP5d ago
I actually looked on the Azure Avitity Logs and see this as the Message for the BadRequest error code:
Operation not supported: A function must first be deployed to use this method.
Operation not supported: A function must first be deployed to use this method.
I'm not quite sure what this means though
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?