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

Cannot deploy my web application. I get the following error: #388

Closed ekyros closed 6 years ago

ekyros commented 6 years ago

Repro steps:

Action: appService.Deploy Error type: Error Error Message: The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used. Version: 0.7.0 OS: win32
Globalrun commented 6 years ago

I got the same issue.

"Error: The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used."

ejizba commented 6 years ago

What type of application are you deploying? Node, .NET Core, Static HTML?

And are you deploying to a Windows or Linux Web App in Azure?

ekyros commented 6 years ago

Angular spa from vs code. Windows server. I get the error when deploying to the production slot. I just started getting the error today. I can deploy to a “stage” deployment slot and then swap slots. Strange…

Brian Paul | President | 469-293-3079 x100 [EK-LogoResizedForEmail]

From: Eric Jizba notifications@github.com Sent: Friday, April 6, 2018 11:47 AM To: Microsoft/vscode-azureappservice vscode-azureappservice@noreply.github.com Cc: Brian A. Paul brianp@ekyros.com; Author author@noreply.github.com Subject: Re: [Microsoft/vscode-azureappservice] Cannot deploy my web application. I get the following error: (#388)

What type of application are you deploying? Node, .NET Core, Static HTML?

And are you deploying to a Windows or Linux Web App in Azure?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode-azureappservice/issues/388#issuecomment-379310902, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVfA-JrIe-Av9mZDS6G-7dv4VhtdBszfks5tl5wWgaJpZM4TJ7mJ.

nturinski commented 6 years ago

@ekyros, I've been trying to reproduce your bug, but I haven't succeeded yet. Here's what are the steps that I've tried:

1.) Created a new Windows Web App 2.) Cloned this Angular SPA repo (https://github.com/gothinkster/angular-realworld-example-app) 3.) Ran npm install, ng serve, and ng build 4.) Deploy the "dist" folder via "zipdeploy"

Are there any steps that you are doing differently that might help me repro? Some other questions:

ninianh commented 6 years ago

same issue here

nturinski commented 6 years ago

@ekyros @Globalrun @ninianh

We've been trying to repro this issue, but we haven't had any success yet. It would be awesome if anybody could help us pinpoint this problem by trying to deploy using one of two methods:

  1. If you have the Azure CLI installed, could you try to deploy to your web app using the following command: az webapp deployment source config-zip --name --resource-group --src [--slot] (reference: https://docs.microsoft.com/en-us/cli/azure/webapp/deployment/source?view=azure-cli-latest#az-webapp-deployment-source-config-zip)

  2. If you could install a previous version of the Azure App Service Extension by manually installing this .vsix (https://github.com/Microsoft/vscode-azureappservice/releases/download/v0.6.1/vscode-azureappservice-0.6.1.vsix) and then attempt a deploy, it would tell us if the breaking changes are in v0.7.0 or if the changes were introduced somewhere else.

We're really sorry if this is blocking your web apps. If you need to update your web app immediately, please try to use the Local Git Deployment Source or connect it to a GitHub repository. This can be done in the "Configure Deployment Source" context action.

ninianh commented 6 years ago

Hi @nturinski

I tried method 1 and it works. Thank you for your help. But i really like using the legacy method that just right click on 'dist' folder and click deploy.

Here is the steps to repro.

  1. Run npm run build.
  2. Right click on 'dist' folder and select 'Deploy to Web app' context menu.
  3. Select subscription and app.
  4. Click Deploy on confirm modal.

    I have 2 web apps with difference errors. Both worked before

  5. Website with custom domain http http://mysite.com and the error is The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
  6. Website with custom domain https https://mysite.com and the error is Hostname/IP doesn't match certificate's altnames: "Host: www.mysite.com. is not in the cert's altnames: DNS:*.azurewebsites.net, DNS:*.scm.azurewebsites.net, DNS:*.azure-mobile.net, DNS:*.scm.azure-mobile.net, DNS:*.sso.azurewebsites.net"
nturinski commented 6 years ago

@ninianh Thanks for your help in testing this issue. I'm able to repro this issue on a Linux container with a custom domain now as well. I appreciate your time and hope to resolve this issue soon!

nturinski commented 6 years ago

@ekyros @Globalrun @ninianh We released a new version of the extension today that will hopefully resolve this issue. Please give it a try and let us know if you are still having issues deploying.

Thanks again for your assistance in tracking down the issue!

ekyros commented 6 years ago

Sorry, I was out last week. I installed the VS Code update and deployed my SPA/Angular app and it worked great. No error. Thank you!

Brian Paul | President | 469-293-3079 x100 [EK-LogoResizedForEmail]

From: Nathan notifications@github.com Sent: Friday, April 13, 2018 5:17 PM To: Microsoft/vscode-azureappservice vscode-azureappservice@noreply.github.com Cc: Brian A. Paul brianp@ekyros.com; Mention mention@noreply.github.com Subject: Re: [Microsoft/vscode-azureappservice] Cannot deploy my web application. I get the following error: (#388)

@ekyroshttps://github.com/ekyros @Globalrunhttps://github.com/Globalrun @ninianhhttps://github.com/ninianh We released a new version of the extension today that will hopefully resolve this issue. Please give it a try and let us know if you are still having issues deploying.

Thanks again for your assistance in tracking down the issue!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode-azureappservice/issues/388#issuecomment-381273792, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVfA-JWfEWye4guNO56OdnU-rDDdmW61ks5toSPSgaJpZM4TJ7mJ.

ninianh commented 6 years ago

@nturinski @ekyros New version, it works for me too. Thanks team.

nturinski commented 6 years ago

@ekyros @ninianh I'm glad that this resolved your issue. I'll go ahead and close this.

Thanks for your patience in this and for using the App Service Extension!

ekyros commented 6 years ago

Thank you! I appreciate the quick resolution. You guys are awesome!

Brian Paul | President | 469-293-3079 x100 [EK-LogoResizedForEmail]

From: Nathan notifications@github.com Sent: Monday, April 16, 2018 5:36 PM To: Microsoft/vscode-azureappservice vscode-azureappservice@noreply.github.com Cc: Brian A. Paul brianp@ekyros.com; Mention mention@noreply.github.com Subject: Re: [Microsoft/vscode-azureappservice] Cannot deploy my web application. I get the following error: (#388)

@ekyroshttps://github.com/ekyros @ninianhhttps://github.com/ninianh I'm glad that this resolved your issue. I'll go ahead and close this.

Thanks for your patience in this and for using the App Service Extension!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode-azureappservice/issues/388#issuecomment-381771730, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVfA-MTR0-2psP-F5qu5fWmB6kJ1yrMRks5tpRzSgaJpZM4TJ7mJ.