-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Azure App Configuration sdk] Running into 401 issue when there is a trailing '/' in store endpoint #25463
Comments
@minhanh-phan can you take a look? |
Hey @MaryanneNjeri, We've tested the SDK with your case, and it is working fine. |
Hey @HarshaNalluru thank you for helping look into this, am using the AppConfigurationClient passing the app configuration store endpoint with a trailing slash something like "https://store-name.azconfig.io/", and a clientSecretCredential and I run into this 401 error, with the response
The error object doesn't also give a lot of information on what the error could be. Expected result is that the SDK would handle any trailing "/" in the store endpoint |
@MaryanneNjeri |
@HarshaNalluru also the response headers indicate that
the token is invalid |
You said the problem is from the trailing "/" in the description. The problem is probably from using a wrong credential. Can you verify? |
Hi @MaryanneNjeri. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
@HarshaNalluru Yes without the trailing "/" in the endpoint authentication is successful. This only happens when there is a trailing "/" in the endpoint. |
@MaryanneNjeri, good news, I could repro the issue with 1.3.1. Apologies. Though the details may be boring, I'm sharing them here for future context. The fix is already in the source code and will be released as part of version 1.4.1, will release it soon. |
- Releasing 1.4.1 - Update generated code so the version in generated code is automatically updated - Fixes #25463, updates changelog - Update perf package to rely on 1.4.1, updates perf/tsconfig.json to use the standard one used by other packages too
@MaryanneNjeri, Thanks for reporting. @azure/app-configuration/v/1.4.1 has bene published to the npm |
@HarshaNalluru Thank you so much, let me try it out |
Describe the bug
When using the App configuration client and passing a configuration store endpoint with a trailing '/' and a credential from, am running into a 401 error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Azure app configuration SDK should handle any trailing '/' in the store endpoint.
The text was updated successfully, but these errors were encountered: