vscode-apimanagement icon indicating copy to clipboard operation
vscode-apimanagement copied to clipboard

406 error when uploading policy

Open kevbry opened this issue 2 years ago • 4 comments

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.<anonymous> extension.bundle.js:16:370772
rejected extension.bundle.js:16:369403

kevbry avatar Nov 04 '22 15:11 kevbry

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

Emmanuel35 avatar Nov 08 '22 13:11 Emmanuel35

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".

Bubelgin avatar Nov 14 '22 10:11 Bubelgin

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

morenyang avatar Nov 15 '22 02:11 morenyang

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

roberto-mardeni avatar Nov 15 '22 14:11 roberto-mardeni