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] client_credentials throttling error is not easy to understand #2855

Closed
bgavrilMS opened this issue Aug 30, 2021 · 0 comments · Fixed by #2892
Closed

[Bug] client_credentials throttling error is not easy to understand #2855

bgavrilMS opened this issue Aug 30, 2021 · 0 comments · Fixed by #2892
Assignees
Milestone

Comments

@bgavrilMS
Copy link
Member

msal 4.35.1

If app developers mis-configure their app with regards to token caching (i.e. no token cache), AAD replies with HTTP status 429 and a Retry-After header.

Expected: the exception should make the potential root cause clear - throttling because lack of app cache - and provide an https://aka.ms/ link

Actual: The application developer sees the following exception:

Microsoft.Identity.Client.MsalThrottledServiceException: An error response was returned by the OAuth2 server, but it could not be parsed. Please inspect the exception properties for details.

StatusCode: 429
ResponseBody: Too Many Requests
Headers: Retry-After: 60

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