Azure / Azure/apiops

[BUG] Error in element 'rewrite-uri when publish

Offen
#605 7 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @guythetechie Auf GitHub ansehen
question
Vorherrschende Sprache
C#
Sterne
448
Forks
247
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Release version

Latest

### Describe the bug

"rewrite-uri" policy will be created automatically when we use apiops to import logic app to azure APIM ,and it used the correct HTML code to show "&" not "&" when extract.
But the publisher omits policy to the wrong operation

### Expected behavior

Export by "Name" rather than "Display name"

### Actual behavior

Import fails with a cryptic error:
crit: Microsoft.Extensions.Hosting.Internal.Host[10]
The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.

System.Net.Http.HttpRequestException: HTTP request to URI
rawxml failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"rewrite-uri","message":"Error in element 'rewrite-uri' on line 5, column 4: Cannot find a property 'XXXX-XXXXX_When_a_HTTP_request_is_received-invoke_668b900f943bcd252dc199a3'"}]}}'.
[raw log.txt](https://github.com/user-attachments/files/16421290/raw.log.txt)

### Reproduction Steps

1. Run extractor
2. Run the Publisher

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.