-
Notifications
You must be signed in to change notification settings - Fork 196
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
[BUG] Error "Not valid api-version" while publishing named values #484
Comments
|
I'm not able to reproduce this. Your URL looks off; you have Can you make sure you've set the APIM instance name correctly for that environment? Should be coming from |
Thanks for your fast reply. I checked it again and now I get the same error withe the APIM instance: https://management.azure.com/subscriptions/***/resourceGroups/providers/Microsoft.ApiManagement/service/xxxxxxxapis-uat-xxx/namedValues/xxxxdata-url?api-version=2022-04-01-preview failed with status code 400. Content is '{"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2022-04-01-preview' is invalid. I have really no idea what is going wrong....! :-( |
You're also missing a resource group name in your URL. Should look like this:
The subscription, resource group, and service name all come from environment variables you've configured in your pipeline. |
Yeah, I think the main issue is solved. But now I got an error with the logge (app insights): I have one subscription with 3 ressource groups: System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/API-Management-uat-rg/providers/Microsoft.ApiManagement/service/xxxapis-uat-apim/loggers/xxxapis-appi?api-version=2022-04-01-preview failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"One or more Properties ['{0}'] specified are missing.","message":"Logger-Credentials--65d6107b46346125c8xxxxxx"}]}}'. How can I handle this conflict? |
It means you are not overriding the logger details correctly. Please search closed issues that have addressed this same topic in the past. |
OK-I will search for it thanks.... |
Welcome. Please close the issue when you get a chance. |
It is working! |
Release version
APIOPS 5.1.1
Describe the bug
During the publishing process (Publishing to UAT environment) of named values we got the following exception:
System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/providers/Microsoft.ApiManagement/service/namedValues/xxxxxxx?api-version=2022-04-01-preview failed with status code 400. Content is '{"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2022-04-01-preview' is invalid.
I edited the publisher files and used the ARM_API_VERSION parameter but it didn't work.
Expected behavior
Pipeline will publish the artifacts.
Actual behavior
Error.
Reproduction Steps
Run Pipeline based on publisher.yaml file.
The text was updated successfully, but these errors were encountered: