Question: HttpClient TimeOut Azure AD

Tejendra Prasad Patel 111 Reputation points
2023-06-29T13:50:34.43+00:00

I only receive the above problem when I use Visual Studio to do a local debug on https://localhost:5001/.

I'd like to know if there's any way I can customise this to happen only during local debug and random times. It usually works, but occasionally it does not.

Before meeting with the networking staff, I considered seeking assistance.

I'm attempting to debug using localhost, but it only happens occasionally when I use https://login.microsoftonline.com/.

MicrosoftTeams-image (2)

Developer technologies | ASP.NET | ASP.NET Core
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,536 Reputation points Moderator
    2023-08-14T05:59:49.5833333+00:00

    Hello @Tejendra Prasad Patel , the timeout error could be related to highly loaded or unavailable network connection. you can try increasing the HttpClient timeout Providing your own HttpClient and proxy using MSAL.NET. Internally, the Microsoft Identity Web authentication library relies on MSAL.NET.

    If the issue persists please Collect a network trace in the browser and send us the exported HAR file to azcommunity@microsoft.com with Subject Attn: Alfredo Revilla.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.