microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

406 error when uploading policy #274

Open kevbry opened 1 year ago

kevbry commented 1 year ago

Does this occur consistently? Yes Repro steps:

  1. Create an API, and edit the all-operations policy using the VSCode extension
  2. Save the cshtml file, choose "Upload"
  3. Receive 406 error response
  4. Note that policy did successfully save and upload

Action: azureApiManagement.apiPolicyEditor.onDidSaveTextDocument Error type: Error Error Message: Failed with code "406".

Version: 1.0.5 OS: win32 OS Release: 10.0.19044 Product: Visual Studio Code Product Version: 1.72.2 Language: en

Call Stack ``` ApiPolicyEditor. extension.bundle.js:16:370772 rejected extension.bundle.js:16:369403 ```
Emmanuel35 commented 1 year ago

Same for me on Linux Ubuntu 22.04. VS Code: 1.73.0 Extension: v1.0.5

Bubelgin commented 1 year ago

Having the same problem with the latest versions of VS code and the extension to date. These errors pop up when trying to save any changes to the policy. Was working all fine a few weeks ago. Failed with code "406". Error: Failed with code "406".

morenyang commented 1 year ago

Same issue for me

Action: azureApiManagement.operationPolicyEditor.onDidSaveTextDocument
Error type: Error
Error Message: Failed with code "406".

Version: 1.0.5
OS: win32
OS Release: 10.0.19044
Product: Visual Studio Code
Product Version: 1.70.0
Language: en
roberto-mardeni commented 1 year ago

Same issue for me, this was working fine a week ago, no updates in extension, it just simply stopped working

Action: azureApiManagement.operationPolicyEditor.onDidSaveTextDocument Error type: Error Error Message: Failed with code "406".

Version: 1.0.5 OS: win32 OS Release: 10.0.22621 Product: Visual Studio Code Product Version: 1.72.1 Language: en