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

Some Azure endpoints have some trouble handling duplicated slashes ('//') in the endpoint's URL #1664

Open
andras-pinter opened this issue May 15, 2024 · 0 comments

Comments

@andras-pinter
Copy link

andras-pinter commented May 15, 2024

Hey!

I encountered an issue when I wanted to query an AppConfiguration endpoint with the azure_svc_appconfiguration crate.
The generated URL contained a duplicate slash, which confused Azure's AppConfiguration endpoint.

Example:
My base URL: https://some-app-conf.azconfig.io/
The generated request's URL: https://some-app-conf.azconfig.io//keys?api-version=2023-10-01
This resulted in a 404 response. However, if I remove the duplicated slash from the Request, like:
https://some-app-conf.azconfig.io/keys?api-version=2023-10-01
everything just works as expected.

This could be an issue for other Azure REST endpoints as well.
I think some Azure endpoints experiencing some troubles dealing with duplicated slashes in the URL.

I tried with the latest version (0.20.0).

I made a draft Pull Request to solve this problem: #1663

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

No branches or pull requests

1 participant