title: How to fix "IDX20804: Unable to retrieve document from: '[PII is hidden]'" error in C#
body: <p>Trying to get an access token to use MS Graph in my WebApi. But keep getting this error,</p>
  
  <blockquote>
    <p>[TaskCanceledException: A task was canceled.]
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task) +167 . .</p>
    
    <p>[IOException: IDX20804: Unable to retrieve document from: '[PII is
    hidden]'.]
    Microsoft.IdentityModel.Protocols.d__8.MoveNext()
    +662 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task) +99 . . [InvalidOperationException: IDX20803: Unable to obtain
    configuration from: '[PII is hidden]'.]
    Microsoft.IdentityModel.Protocols.d__24.MoveNext()
        +1586 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
    task) +99</p>
  </blockquote>
  
  <p>Tried all the fixes that i could find online.</p>
  
  <p>I am using this <a href="https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect-v2/tree/master/WebApp" rel="noreferrer">repo</a> as a reference for the auth part.</p>
  
  <p>How can i fix this?</p>