-
Notifications
You must be signed in to change notification settings - Fork 192
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
[Question] Publisher Pipeline is not creating API called 'oauth2', is this is a reserved keyword in apiops #609
Comments
|
@GaurSumit - do you have an |
@guythetechie yes the file is present in the repository in the mentioned path. |
@GaurSumit - I think this was resolved in v6. In v5, if your If you're not ready to upgrade to v6, try changing both the |
@guythetechie the file was part of the commit, i had it worked out by reverting the changes and pushing them again as fresh change. |
@guythetechie - thanks for the info. I am running v6.0.1 and if I update only a It seems even in the latest release this is still happening where you need to update both for changes to be published. |
Sounds like a bug. If you only change the |
Log attached. Doesn't pickup anything. Confirmed the pipeline commit has I did some other tests after, saw your comment in this issue and tested it out. It worked, so yeah, maybe a bug. Let me know if I can do anything to help test further? (or if you want me to raise a new issue for this) |
Thank you, definitely looks a bug. Will prioritize fixing this. |
@riosengineer - would you mind creating a separate issue to keep things clean? The bug is unrelated to this original issue. |
Release version
v5.1.1
Question Details
I am trying to create an API called oauth2 which will acts as a proxy for the actual token URL endpoint from Azure AD. i am seeing a failure when i am trying to publish this new API into my apim instance as looking onto the traces it looks like it is trying to fetch the oauth2 API instead of creating it and since this API does not exist the publisher pipeline is getting failed.
I have tried to create the API manually and it working fine, the API is getting created successfully but from publisher it is not.
Is the Keyword oauth2 is reserved in APIOPS as i was able to create the api manually using the same artefacts i have in my repo.
if you see the below trace it is trying to fetch the API instead of creating it.
2024-07-31T12:28:52.9693796Z info: Publisher[0]
2024-07-31T12:28:52.9695292Z Putting API oauth2...
2024-07-31T12:28:53.0118089Z dbug: GetRestResource[0]
2024-07-31T12:28:53.0119467Z Beginning request to get REST resource at URI https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.ApiManagement/service/***/apis/oauth2?api-version=2022-04-01-preview...
2024-07-31T12:28:53.3408459Z crit: Publisher[0]
2024-07-31T12:28:53.3410966Z System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.ApiManagement/service/***/apis/oauth2?api-version=2022-04-01-preview failed with status code 404. Content is '{"error":{"code":"ResourceNotFound","message":"Api not found.","details":null}}'.
2024-07-31T12:28:53.3411733Z at common.HttpPipelineExtensions.Validate(Response response, Uri requestUri)
2024-07-31T12:28:53.3412285Z at common.HttpPipelineExtensions.GetContent(HttpPipeline pipeline, Uri uri, CancellationToken cancellationToken)
Expected behavior
Actual behavior
Reproduction Steps
The text was updated successfully, but these errors were encountered: