Azure / Azure/apiops

[BUG] Random publisher error

Open
#857 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

Description

### Release version

APIOps toolkit v7.0.1

### Describe the bug

When running the publisher on artifacts extrated from a source APIM instance it randomly exit with an error related to the impossibility todownload the well-know configuration from URL specificed in the validate-jwt policy defined on products. The problem happens regardelss of the product being published

### Expected behavior

APIs and Products are deployed successfully to the targe APIM instance

### Actual behavior

The publisher randomly exit wirth the following error

Unhandled exception. System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/************/resourceGroups/********/providers/Microsoft.ApiManagement/service/*********/products/*********/policies/policy?api-version=2024-05-01 failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"validate-jwt","message":"Error in element 'validate-jwt' on line 40, column 4: Unable to obtain configuration from: 'https://login.microsoftonline.com/***************/v2.0/.well-known/openid-configuration'. Will retry at '1/1/0001 12:00:00 AM +00:00'. Exception: 'System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://login.microsoftonline.com/***********/v2.0/.well-known/openid-configuration'.

### Reproduction Steps

Publish one or more products with validate-jwt policy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.