This post was most recently updated on March 20th, 2021.
3 min read.This article explains how to fix error with error code AADSTS50196. This issue usually comes up with an error message somewhat like âThe server terminated an operation because it encountered a client request loop.â
The error seems to be popping up more and more often. No worries â it wasnât caused by you! It is, in fact, an unintended side effect of a security hardening feature in some browsers, and some outdated configuration on Microsoftâs end.
Obviously, you could run into the issue on other sites as well, and the workaround is actually the same. The example error messages on this article will be from Microsoft, however.
But letâs first take a step back. What exactly does happen?
Problem
Table of Contents
So, what is AADSTS50196 error, and when do you encounter it?
The actual error message seems to usually be âAADSTS50196: The server terminated an operation because it encountered a client request loop. Please contact your app vendorâ, but as with most AAD-related error messages, Iâm sure this one can vary, too.
Typically, you run into it somewhat like this â when navigating to a website hosted by Microsoft â and, crucially, offering a log-in provided by Microsoft â you are unable to proceed and encounter an error message like below:
Sorry, but weâre having trouble signing you in. AADSTS50196: The server terminated an operation because it encountered a client request loop. Please contact your app vendor. Troubleshooting details If you contact your administrator, send this info to them. Request Id: [omitted] Correlation Id: [omitted] Timestamp: [omitted] Message: AADSTS50196: The server terminated an operation because it encountered a client request loop. Please contact your app vendor. Advanced diagnostics: If you plan on getting support for an issue, turn this on and try to reproduce the error. This will collect additional information that will help troubleshoot the issue.
This ugly error is likely thrown at you as soon as you try to access the website.
Due to the implicit authentication happening behind the scenes, the error might stop you from accessing sites such as microsoft.com, MSDN subscriber downloads or even Microsoft Store.
Solution
Thereâs a couple of different solutions to this issue â but the actually root cause is with the way Microsoft handles authentication to their web properties. You canât solve that. But the steps below aim to remediate the issue somewhat and should help â at least temporarily!
Time needed:Â 5 minutes.
How to solve AADSTS50196 Error on your machine?
- Change to a different browser
Especially if youâre using Microsoft Edge or Apple Safari, switching to another browser might help. Google is not very prudent about security-related things, so Google Chrome might be the most likely browser to work.
- Clear your browserâs cache
Removing cookies might help! This issue might be solved (at least temporarily) by getting rid of any offending cookies. How to do this varies between browsers, but usually the following keyboard combination opens up the view to do just that:
Ctrl + Shift + Delete
From the window that opens, make sure to choose anything and everything that relates to âcookiesâ, and hit âClearâ. Like shown in the screenshot below!
And you should be good! These are the 2 quick ways how you can (locally) fix âerror code 50196â or âAADSTS50196â -issues, or at least alleviate the symptoms temporarily, since the issue is likely caused by the maintainer of the site (likely Microsoft).
If it didnât help, let me know in the comments section below! :)
References
- https://github.com/AzureAD/MSAL.PS/issues/10
- https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/1788
- https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/547
- https://answers.microsoft.com/en-us/windows/forum/all/edgeaadsts50196-the-server-terminated-an-operation/62abbf9a-678d-4fa4-a943-e58136ec3ed3?auth=1
- Experiment: DateTime formats - April 21, 2021
- How to fix âLinkedAuthorizationFailedâ when deploying an Azure Logic App? - April 15, 2021
- How to fix a build configuration thatâs not available as a build directive in Visual Studio? - April 14, 2021