Skip to content
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 in element 'rewrite-uri when publish #605

Open
PeiyuKuo opened this issue Jul 30, 2024 · 7 comments
Open

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

PeiyuKuo opened this issue Jul 30, 2024 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@PeiyuKuo
Copy link

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

Reproduction Steps

  1. Run extractor
  2. Run the Publisher
Copy link

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@waelkdouh waelkdouh added the question Further information is requested label Jul 30, 2024
@guythetechie
Copy link
Contributor

Can you share the policy file under /artifacts/apis/wyhq-nileplus-d-nifiserverlog/operations/When_a_HTTP_request_is_received-invoke/policy.xml?

@PeiyuKuo
Copy link
Author

PeiyuKuo commented Jul 31, 2024 via email

@PeiyuKuo
Copy link
Author

PeiyuKuo commented Aug 1, 2024

hi

any updates?

@waelkdouh
Copy link
Contributor

This is an open source project so please be patient. No need to check with us as we will respond when we have a chance to take a look at your issue.

@guythetechie
Copy link
Contributor

@PeiyuKuo - I don't see anything attached. Don't know if Github uploads attachments to the issue when you respond by email. Can you try uploading your file?

@PeiyuKuo
Copy link
Author

PeiyuKuo commented Aug 2, 2024

i've uploaded zip file, thanks.
policy.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants