microsoft / vscode-azureappservice

Azure App Service extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice
MIT License
111 stars 94 forks source link

"Application Error" shows in the web page after deploying a zip file nodejs-docs-hello-world.zip to a custom domain Web App #2624

Open v-ruizh opened 6 months ago

v-ruizh commented 6 months ago

OS: All App Service Version: 20240228.4 Regression: Not a regression

Repro Steps:

  1. Clone the project https://github.com/Azure-Samples/nodejs-docs-hello-world and zip its contents.
  2. Open the folder which includes the above zip file in VS Code.
  3. Right click the zip file and deploy it to a custom domain Web App.
  4. Execute "Browe Website" for the above web app.
  5. Check whether the web page shows well or not.

Expect: The web page shows well. image

Actual: "Application Error" shows in the web page. image

More Info:

  1. This issue doesn't reproduce after deploying an unzip project https://github.com/Azure-Samples/nodejs-docs-hello-world.
  2. This issue doesn't reproduce after deploying a zip file https://github.com/johnpapa/node-hello.
nturinski commented 6 months ago

I was able to deploy using a zip file with that repo. image

Here is the zip file that I created and deployed. package.zip

Could I see the contents of your zip?

v-ruizh commented 6 months ago

@nturinski I can reproduce this bug with your zip file.

This is my zip file node-test.zip.

This bug only reproduces for a custom domain web app. We use this custom domain web app "naturins-custom-domain" from your subscription "naturins" to test.

I guess you may deploy the zip file to a normal web app, this bug does not reproduce for a normal web app.