Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Authentication.WebRequest.SendAsync Request timeout exception

Discussion in 'Authentication' started by domonyiv, Jan 31, 2023.

  1. domonyiv

    domonyiv

    Joined:
    Oct 1, 2016
    Posts:
    75
    After implementing the new analytics and disabled the legacy one I got the following execptions in Crashlytics (android). Is this a known issue?

    Unity 2021.3.17f1, Authentication 2.4.0, Analytics 4.2.0.

    Code (CSharp):
    1. Non-fatal Exception: java.lang.Exception: WebRequestException : Cannot resolve destination host
    2.        at Unity.Services.Authentication.WebRequest.SendAsync[T](Unity.Services.Authentication.WebRequest)
    3.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    4.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    5.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    6.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    7.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    8.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    9.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    10.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].TrySetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    11.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].SetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    12.        at Unity.Services.Authentication.WebRequest.RequestCompleted(Unity.Services.Authentication.WebRequest)
    13.        at Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0.<SendAttemptAsync>b__0(Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0)
    14.        at UnityEngine.AsyncOperation.InvokeCompletionEvent(UnityEngine.AsyncOperation)
    15.        at Unity.Services.Authentication.AuthenticationServiceInternal.HandleSignInRequestAsync(Unity.Services.Authentication.AuthenticationServiceInternal)
    16.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    17.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    18.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    19.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    20.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    21.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    22.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    23.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    24.        at Unity.Services.Authentication.WebRequest.SendAsync[T](Unity.Services.Authentication.WebRequest)
    25.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    26.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    27.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    28.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    29.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    30.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    31.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    32.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].TrySetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    33.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].SetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    34.        at Unity.Services.Authentication.WebRequest.RequestCompleted(Unity.Services.Authentication.WebRequest)
    35.        at Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0.<SendAttemptAsync>b__0(Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0)
    36.        at UnityEngine.AsyncOperation.InvokeCompletionEvent(UnityEngine.AsyncOperation)
    37.        at Unity.Services.Authentication.AuthenticationServiceInternal.HandleSignInRequestAsync(Unity.Services.Authentication.AuthenticationServiceInternal)
    38.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    39.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    40.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    41.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    42.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    43.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    44.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    45.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    46.        at Unity.Services.Authentication.WebRequest.SendAsync[T](Unity.Services.Authentication.WebRequest)
    47.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    48.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    49.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    50.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    51.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    52.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    53.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    54.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].TrySetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    55.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].SetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    56.        at Unity.Services.Authentication.WebRequest.RequestCompleted(Unity.Services.Authentication.WebRequest)
    57.        at Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0.<SendAttemptAsync>b__0(Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0)
    58.        at UnityEngine.AsyncOperation.InvokeCompletionEvent(UnityEngine.AsyncOperation)
    59.        at UnityServicesManager.InitializeRemoteConfigAsync(UnityServicesManager)
    60.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    61.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    62.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    63.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    64.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    65.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    66.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    67.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    68.        at Unity.Services.Authentication.AuthenticationServiceInternal.HandleSignInRequestAsync(Unity.Services.Authentication.AuthenticationServiceInternal)
    69.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    70.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    71.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    72.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    73.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    74.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    75.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    76.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    77.        at Unity.Services.Authentication.WebRequest.SendAsync[T](Unity.Services.Authentication.WebRequest)
    78.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    79.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    80.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    81.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    82.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    83.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    84.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    85.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].TrySetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    86.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].SetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    87.        at Unity.Services.Authentication.WebRequest.RequestCompleted(Unity.Services.Authentication.WebRequest)
    88.        at Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0.<SendAttemptAsync>b__0(Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0)
    89.        at UnityEngine.AsyncOperation.InvokeCompletionEvent(UnityEngine.AsyncOperation)
    90.        at UnityServicesManager.Awake(UnityServicesManager)
    91.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    92.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    93.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    94.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    95.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    96.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    97.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    98.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    99.        at UnityServicesManager.InitializeRemoteConfigAsync(UnityServicesManager)
    100.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    101.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    102.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    103.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    104.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    105.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    106.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    107.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    108.        at Unity.Services.Authentication.AuthenticationServiceInternal.HandleSignInRequestAsync(Unity.Services.Authentication.AuthenticationServiceInternal)
    109.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    110.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    111.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    112.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    113.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    114.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    115.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    116.        at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException(System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult])
    117.        at Unity.Services.Authentication.WebRequest.SendAsync[T](Unity.Services.Authentication.WebRequest)
    118.        at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
    119.        at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext)
    120.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
    121.        at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.Tasks.AwaitTaskContinuation)
    122.        at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation)
    123.        at System.Threading.Tasks.Task.FinishContinuations(System.Threading.Tasks.Task)
    124.        at System.Threading.Tasks.Task.TrySetException(System.Threading.Tasks.Task)
    125.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].TrySetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    126.        at System.Threading.Tasks.TaskCompletionSource`1[TResult].SetException(System.Threading.Tasks.TaskCompletionSource`1[TResult])
    127.        at Unity.Services.Authentication.WebRequest.RequestCompleted(Unity.Services.Authentication.WebRequest)
    128.        at Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0.<SendAttemptAsync>b__0(Unity.Services.Authentication.WebRequest+<>c__DisplayClass16_0)
    129.        at UnityEngine.AsyncOperation.InvokeCompletionEvent(UnityEngine.AsyncOperation)
    130.        at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0(System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c)
    131.        at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke(UnityEngine.UnitySynchronizationContext+WorkRequest)
    132.        at UnityEngine.UnitySynchronizationContext.Exec(UnityEngine.UnitySynchronizationContext)