[BUG] Random publisher error
- Vorherrschende Sprache
- C#
- Sterne
- 448
- Forks
- 247
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Publisher-Flow für ein oder mehrere Produkte mit einer validate-jwt-Policy zu reproduzieren, und verwende dafür aus einer Quell-APIM-Instanz extrahierte Artefakte. Verfolge die fehlgeschlagene Anfrage an den Product-Policy-Endpunkt und die Well-Known-Konfigurations-URL. Überprüfe anschließend, dass das Veröffentlichen von APIs und Produkten zuverlässig gegenüber der Ziel-APIM-Instanz erfolgreich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, csharp
- Bereich
- api, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100