Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API version query parameter is not specified or was specified incorrectly #346

Open
rshetty-ws opened this issue Feb 23, 2024 · 1 comment

Comments

@rshetty-ws
Copy link

Does this occur consistently?
Repro steps:

Action: azureApiManagement.showServicePolicy
Error type: Error
Error Message: API version query parameter is not specified or was specified incorrectly. Supported versions: 2021-08-01,2021-12-01-preview,2022-04-01-preview,2022-08-01,2022-09-01-preview,2023-03-01-preview,2023-05-01-preview,2023-09-01-preview Example query param format: api-version=SupportedVersion

Version: 1.0.8
OS: win32
OS Release: 10.0.19044
Product: Visual Studio Code
Product Version: 1.86.2
Language: en

Call Stack
ServicePolicyEditor.<anonymous> extension.bundle.js:16:392980
rejected extension.bundle.js:16:392126
@larspehrsson
Copy link

For a quick fix you can edit this file,
~/.vscode/extensions/ms-azuretools.vscode-apimanagement-1.0.8/dist/extension.bundle.js
replace the two "2019-12-01" with "2021-08-01" and it should work.
Hopefully one day MS will change the correct line,

export const apimApiVersion = "2019-12-01";

larspehrsson added a commit to larspehrsson/vscode-apimanagement that referenced this issue Mar 26, 2024
Fixes issued mentioned in microsoft#346
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants