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
332 stars 57 forks source link

Error on deployment: The content server has unexpectedly rejected the request with: InternalServerError #1520

Open sameer-debug-ai opened 3 months ago

sameer-debug-ai commented 3 months ago

Describe the bug

I'm deploying a React Code to Azure Static Web Apps from Azure DevOps Pipelines. But it returned error The content server has unexpectedly rejected the request with: InternalServerError

To Reproduce Steps to reproduce the behavior:

Deploy via Azure DevOps Pipelines Deployment unexpectedly aborted with below error Expected behavior Deployment should complete successfully

Error Logs Url: https://github.com/user-attachments/assets/f3a5f68f-d45a-4b0d-bc63-9647de08071e Screenshots Azure DevOps Release Pipeline: https://github.com/user-attachments/assets/20546d5c-8a5b-46e8-86ef-225d96e07bbd

fireole commented 3 months ago

we are getting this as well. Just started 7/30/2024 in the evening:

2024-07-31T21:06:28.8578112Z 2024-07-31T21:06:28.9947670Z Try to validate location at: '/working_dir'. 2024-07-31T21:06:28.9958568Z App Directory Location: '/' was found. 2024-07-31T21:06:28.9959183Z Try to validate location at: '/working_dir/swa-db-connections'. 2024-07-31T21:06:28.9962431Z Try to validate location at: '/working_dir/staticwebapp.config.json'. 2024-07-31T21:06:28.9962988Z config_file_location: config file '/staticwebapp.config.json' was found. 2024-07-31T21:06:28.9966534Z Looking for event info 2024-07-31T21:06:28.9973987Z Could not get event info. Proceeding 2024-07-31T21:06:49.7029092Z ##[error]The content server has unexpectedly rejected the request with: InternalServerError 2024-07-31T21:06:49.9011825Z 2024-07-31T21:06:49.9012816Z ##[warning]For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/ 2024-07-31T21:06:49.9013974Z ##[warning]If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/ 2024-07-31T21:06:49.9014260Z ##[warning]Exiting 2024-07-31T21:06:50.0248206Z 2024-07-31T21:06:50.0316617Z ##[error]Error: The process '/usr/bin/bash' failed with exit code 1 2024-07-31T21:06:50.0357792Z ##[section]Finishing: Static Web App: dev

kwooccli commented 3 months ago

me too.

kwooccli commented 3 months ago

looks like it's working all of a sudden again for me.

Squixx commented 4 weeks ago

happening again today

a2zlondon commented 2 weeks ago

Not working for me. Has anyone got a work around?

Squixx commented 2 weeks ago

Unfortunately no, it randomly started working last week but is broken on our side again now.

To add to that: it's only when deploying from a non production branch