CloudFunction NoInternetConnection, Request timeout and Error: HttpException: (0) Request timeout

Hello,

I consistently keep getting these errors (though each time) when calling some cloud code functions. It's not always on a cold start, but it often is.

NoInternetConnection
Request timeout

Also, it seems more likely to happen on lengthier functions, but again, not always.

Further, there are no network issues when it happens.

Lastly, the functions run fine server side.

For instance, below is code to delete a player's account. The client first awaits a method call to the module that cleans up player data. If that is successful, the client then calls the Authentication service to delete the account.

If I get the error, the player data is still deleted (though usually not the account, just the cleanup) so I'm guessing in this specific instance, it was the CallModuleEndpointAsync call that caused it (though there is no exception caught by the catch block).

Someone posted a similar issue https://discussions.unity.com/t/935437 , but not sure that solution is going to help as the exception is not being caught and it's just a repeated call (which I don't want as the method is generally executed server side).

I've tried not awaiting the calls, just to see what happens, and I still get the errors (though again, not every time).

I've pasted the error log at the end of this post

Client Side

  public async Task DeleteAccount()
        {
            this.LogWarning($"DeleteAccount()");

            try
            {
                bool isSucces =
                    await CloudCodeService.Instance.CallModuleEndpointAsync<bool>(
                        CloudCodeModule.WorldOfWords,
                        ServerFunction.DeletePlayer
                        );

                if (isSucces)
                {
                    await AuthenticationService.Instance.DeleteAccountAsync();
                    this.Log($"Account successfully deleted.");
                }
            }
            catch (Exception ex)
            {
                this.LogWarning($"Account Deletion Exception: {ex}");
                OnUiMessage?.Invoke("Account Deletion Exception", $"{ex.Message}");
            }
        }

CloudCode Module

[CloudCodeFunction(ServerFunction.DeletePlayer)]     
public async Task<bool> DeletePlayer(IExecutionContext context)
        {
            _logger.LogInformation($"DeletePlayer() playerId: {context.PlayerId}");

            if (string.IsNullOrEmpty(context.PlayerId))
                return false;

            await ForfeitAllGames(context, context.PlayerId);
            await DeclineAllChallengers(context, context.PlayerId);
            await RemovePlayerFromAllLeaderboards(context, context.PlayerId);

            await SendMessageToUserIdAsync(context, WordsServerResponse.PlayerDataDeleted, "", context.PlayerId);

            return true;
        }

ERROR Log

NoInternetConnection
Request timeout

0x00007ff68cb597dd (Unity) StackWalker::GetCurrentCallstack
0x00007ff68cb5e8a9 (Unity) StackWalker::ShowCallstack
0x00007ff68db4bfe1 (Unity) GetStacktrace
0x00007ff68e20729e (Unity) DebugStringToFile
0x00007ff68bb2df38 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000002174364b543 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002174364b47b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
0x000002174364b200 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000217b659fce5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x00000217b659f803 (Mono JIT Code) Unity.Services.CloudCode.CloudCodeInternal:BuildException (bool,long,int,string,Unity.Services.CloudCode.Internal.Http.HttpException) (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/CloudCode.cs:182)
0x00000217b65ac41b (Mono JIT Code) Unity.Services.CloudCode.CloudCodeInternal/d_16:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/CloudCode.cs:153)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208f55d3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageTwo ()
0x00000217208f50ab (Mono JIT Code) System.Threading.Tasks.Task:Finish (bool)
0x00000217b652434b (Mono JIT Code) System.Threading.Tasks.Task:TrySetException (object)
0x00000217b652418b (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException (System.Exception)
0x00000217b65acc13 (Mono JIT Code) Unity.Services.CloudCode.CloudCodeInternal/d
21:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/CloudCode.cs:243)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208f55d3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageTwo ()
0x00000217208f50ab (Mono JIT Code) System.Threading.Tasks.Task:Finish (bool)
0x00000217b652434b (Mono JIT Code) System.Threading.Tasks.Task:TrySetException (object)
0x00000217b652418b (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException (System.Exception)
0x00000217b65ad743 (Mono JIT Code) Unity.Services.CloudCode.Internal.Apis.CloudCode.CloudCodeApiClient/d
7:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Apis/CloudCodeApi.cs:138)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208fda0b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x000002174476a413 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x00000217b6511bab (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/d
2:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:44)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208fda0b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x000002174476a413 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x00000217b651237b (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/d
4:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:69)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208fda0b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x000002174476a413 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x00000217b6512b8b (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/d
6:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:105)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208fda0b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x000002174476a413 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x00000217b6514e23 (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/<>c
DisplayClass6_0/<b0>d:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:102)
0x00000217447beada (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000216b3ea02e6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x000002174484ff0b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000217447be93b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000217447be81a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x0000021742d83325 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x0000021742d831c3 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000217208f6973 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000217208f60f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000217208fda0b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x00000217447be783 (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource
1:TrySetResult (TResult_REF)
0x00000217b554a4d3 (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource`1:SetResult (TResult_REF)
0x00000217b651fa73 (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.UnityWebRequestHelpers/<>c
DisplayClass0_0:b0 (UnityEngine.AsyncOperation) (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/UnityWebRequestHelpers.cs:35)
0x00000217b554851b (Mono JIT Code) UnityEngine.AsyncOperation:InvokeCompletionEvent ()
0x00000217b6019808 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void
this_ (object,intptr,intptr,intptr)
0x00007ffbea444c1e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffbea37d254 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffbea37d3cc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff68ca721c4 (Unity) scripting_method_invoke
0x00007ff68ca4feb4 (Unity) ScriptingInvocation::Invoke
0x00007ff68c6d09b6 (Unity) AsyncOperation::InvokeCoroutine
0x00007ff68d01875c (Unity) UnityWebRequestAsyncOperation::InvokeCoroutine
0x00007ff68d018941 (Unity) UnityWebRequestProto::Job_InvokeCoroutine
0x00007ff68c683d8a (Unity) BackgroundJobQueue::ExecuteMainThreadJobs
0x00007ff68c70652c (Unity) InitPlayerLoopCallbacks'::2'::EarlyUpdateExecuteMainThreadJobsRegistrator::Forward
0x00007ff68c6e676c (Unity) ExecutePlayerLoop
0x00007ff68c6e68e0 (Unity) ExecutePlayerLoop
0x00007ff68c6ed175 (Unity) PlayerLoop
0x00007ff68d6c39b5 (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff68d6d087d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff68d6ceb61 (Unity) Application::TickTimer
0x00007ff68db51c8a (Unity) MainMessageLoop
0x00007ff68db56b60 (Unity) WinMain
0x00007ff68ef3af6e (Unity) __scrt_common_main_seh
0x00007ffc6ba37344 (KERNEL32) BaseThreadInitThunk
0x00007ffc6c9a26b1 (ntdll) RtlUserThreadStart

Hi @samhain323

I've looked into what I could given the information provided but as yet I've not found a request that has exceeded the default timeout of the client.

Would you be able to provide some more information to help us debug the issue?

  • which platform is the build running on or is this output via the Editor?
  • which unity version is this using?
  • any additional request data that could help us narrow down the logs e.g. a rough timestamp of the error
  • "Also, it seems more likely to happen on lengthier functions, but again, not always. "do the cloud code observability logs indicate the function has been invoked when the exception occurs?
  • have you changed anything with the default configuration of the Cloud Code instance?

Sorry for the late reply, been super busy trying to get all this worked out

Editor, Android, and iOS, but seems most common on Android

2022.3.30f1

The function is called. If you look at the DeleteAccount method above, the call tothe cloudfunction basically does player data cleanup (removes from active games, deletes games, etc.). Once that is finished, then the call to actually delete the account occurs.

In this specific instance, when an error occurs, the cloud function is called and the cleanup is performed (verified by checking the playerdata from the dashboard), but the account is not deleted, meaning the call to delete the account was not reached or failed.

I have not changed anything that I'm aware of. I do use Firebase messaging to send mobile push notifications to specific users as I haven't seen a way to do that with UGS as of yet.

Also, when implementing the solution linked above, I still got the error, but it was actually caught in the block this time.

Just caught another error with SRD debugger. Here is the log.

Also, since using the above solution, the app hangs, but does not seem to crash (at least as of yet). So it recovers after a second or two.

You can search the log for "NoInternetConnection"

9874545--1423737--srd_bugreport_2024-06-05T14_57_49.txt (123 KB)

Caught another one on the pc. Its weird because it catches the exception in the block, but it also shows up in the editor log. This recovered and continued playing as the second call worked fine.

9876672--1424280--upload_2024-6-6_8-40-46.png

[MessageNetworkManager] CallCloudFunctionAsyncWithRetries
functionName: ClientRequestHandler tryNumber: 1

UnityEngine.Debug:LogWarning (object)
Longtooth.Words.WorldOfWordsExtensions:LogWarning (object,object) (at Assets/Scripts/Utilities/WorldOfWordsExtensions.cs:239)
Longtooth.Words.Networking.MessageNetworkManager/d_1001<string>:MoveNext () (at Assets/Scripts/Networking/MessageNetworkManager.cs:248)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1>:Startd
100`1> (Longtooth.Words.Networking.MessageNetworkManager/d1001<string>&)
Longtooth.Words.Networking.MessageNetworkManager:CallCloudFunctionAsyncWithRetries<string> (string,System.Collections.Generic.Dictionary
2,bool)
Longtooth.Words.Networking.MessageNetworkManager/d
101:MoveNext () (at Assets/Scripts/Networking/MessageNetworkManager.cs:284)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Startd
101> (Longtooth.Words.Networking.MessageNetworkManager/d101&)
Longtooth.Words.Networking.MessageNetworkManager:SendClientRequestAsyncWithRetries (string,object,bool)
Longtooth.Words.Networking.MessageNetworkManager/d
116:MoveNext () (at Assets/Scripts/Networking/MessageNetworkManager.cs:615)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Startd
116> (Longtooth.Words.Networking.MessageNetworkManager/d116&)
Longtooth.Words.Networking.MessageNetworkManager:SendGeneratedState (Longtooth.Words.Data.ArenaGameUpdateRequest)
S_GameManager:SendGeneratedDataToBackend () (at Assets/Scripts/S_GameManager.cs:1401)
S_IngameGameFlow:StartGame (Longtooth.Words.GameType) (at Assets/Scripts/S_IngameGameFlow.cs:154)
S_GameManager:OnArenaStateUpdated (Longtooth.Words.Data.ArenaGameData) (at Assets/Scripts/S_GameManager.cs:1311)
S_GameManager:OnArenaStateUpdated (string) (at Assets/Scripts/S_GameManager.cs:1260)
S_GameManager:OnNewArenaGameStarting (string) (at Assets/Scripts/S_GameManager.cs:1155)
UniRx.Observer/Subscribe1<string>:OnNext (string) (at Assets/Plugins/UniRx/Scripts/Observer.cs:165)
UniRx.Operators.ObserveOnObservable
1/ObserveOn
:OnNext_ (string) (at Assets/Plugins/UniRx/Scripts/Operators/ObserveOn.cs:181)
UniRx.Scheduler/MainThreadScheduler/QueuedAction1<string>:Invoke (object) (at Assets/Plugins/UniRx/Scripts/UnityEngineBridge/MainThreadScheduler.cs:203)
UniRx.InternalUtil.ThreadSafeQueueWorker:ExecuteAll (System.Action
1) (at Assets/Plugins/UniRx/Scripts/InternalUtil/ThreadSafeQueueWorker.cs:81)
UniRx.MainThreadDispatcher:Update () (at Assets/Plugins/UniRx/Scripts/UnityEngineBridge/MainThreadDispatcher.cs:622)

NoInternetConnection
Request timeout

0x00007ff706ef97dd (Unity) StackWalker::GetCurrentCallstack
0x00007ff706efe8a9 (Unity) StackWalker::ShowCallstack
0x00007ff707eebfe1 (Unity) GetStacktrace
0x00007ff7085a729e (Unity) DebugStringToFile
0x00007ff705ecdf38 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000002965655c423 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000002965655c35b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
0x000002965655c0e0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000029656becd85 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000029656bec873 (Mono JIT Code) Unity.Services.CloudCode.CloudCodeInternal:BuildException (bool,long,int,string,Unity.Services.CloudCode.Internal.Http.HttpException) (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/CloudCode.cs:182)
0x0000029656b9f82b (Mono JIT Code) Unity.Services.CloudCode.CloudCodeInternal/d_16:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/CloudCode.cs:153)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c61112f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageTwo ()
0x00000295c6110f7b (Mono JIT Code) System.Threading.Tasks.Task:Finish (bool)
0x0000029656beaf1b (Mono JIT Code) System.Threading.Tasks.Task:TrySetException (object)
0x0000029656bead6b (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException (System.Exception)
0x0000029656bb02c3 (Mono JIT Code) Unity.Services.CloudCode.CloudCodeInternal/d
21:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/CloudCode.cs:243)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c61112f3 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageTwo ()
0x00000295c6110f7b (Mono JIT Code) System.Threading.Tasks.Task:Finish (bool)
0x0000029656beaf1b (Mono JIT Code) System.Threading.Tasks.Task:TrySetException (object)
0x0000029656bead6b (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException (System.Exception)
0x0000029656bb0d73 (Mono JIT Code) Unity.Services.CloudCode.Internal.Apis.CloudCode.CloudCodeApiClient/d
7:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Apis/CloudCodeApi.cs:138)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c611989b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x00000296565afc63 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x0000029656b2cdfb (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/d
2:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:44)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c611989b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x00000296565afc63 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x0000029656b2d51b (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/d
4:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:69)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c611989b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x00000296565afc63 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x0000029656b2dc5b (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/d
6:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:105)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c611989b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x00000296565afc63 (Mono JIT Code) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetResult (TResult_REF)
0x0000029656b30a33 (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.HttpClient/<>c
DisplayClass6_0/<b0>d:MoveNext () (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:102)
0x00000296565c2b1a (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
0x00000295c609bcf6 (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000295c609b86b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000296565c297b (Mono JIT Code) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
0x00000296565c285a (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:InvokeAction (object)
0x00000295c77654a5 (Mono JIT Code) System.Threading.Tasks.AwaitTaskContinuation:RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
0x00000295c7765343 (Mono JIT Code) System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run (System.Threading.Tasks.Task,bool)
0x00000295c6112c43 (Mono JIT Code) System.Threading.Tasks.Task:FinishContinuations ()
0x00000295c6112343 (Mono JIT Code) System.Threading.Tasks.Task:FinishStageThree ()
0x00000295c611989b (Mono JIT Code) System.Threading.Tasks.Task1<TResult_REF>:TrySetResult (TResult_REF)
0x00000296565c27c3 (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource
1:TrySetResult (TResult_REF)
0x00000296568faa23 (Mono JIT Code) System.Threading.Tasks.TaskCompletionSource`1:SetResult (TResult_REF)
0x0000029656b32fe3 (Mono JIT Code) Unity.Services.CloudCode.Internal.Http.UnityWebRequestHelpers/<>c
DisplayClass0_0:b0 (UnityEngine.AsyncOperation) (at ./Library/PackageCache/com.unity.services.cloudcode@2.6.2/Runtime/com.unity.services.cloudcode.internal/Http/UnityWebRequestHelpers.cs:35)
0x00000296568f8d2b (Mono JIT Code) UnityEngine.AsyncOperation:InvokeCompletionEvent ()
0x00000296566710f8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void
this_ (object,intptr,intptr,intptr)
0x00007ffddedd4c1e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffdded0d254 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffdded0d3cc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff706e121c4 (Unity) scripting_method_invoke
0x00007ff706defeb4 (Unity) ScriptingInvocation::Invoke
0x00007ff706a709b6 (Unity) AsyncOperation::InvokeCoroutine
0x00007ff7073b875c (Unity) UnityWebRequestAsyncOperation::InvokeCoroutine
0x00007ff7073b8941 (Unity) UnityWebRequestProto::Job_InvokeCoroutine
0x00007ff706a23d8a (Unity) BackgroundJobQueue::ExecuteMainThreadJobs
0x00007ff706aa652c (Unity) InitPlayerLoopCallbacks'::2'::EarlyUpdateExecuteMainThreadJobsRegistrator::Forward
0x00007ff706a8676c (Unity) ExecutePlayerLoop
0x00007ff706a868e0 (Unity) ExecutePlayerLoop
0x00007ff706a8d175 (Unity) PlayerLoop
0x00007ff707a639b5 (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff707a7087d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff707a6eb61 (Unity) Application::TickTimer
0x00007ff707ef1c8a (Unity) MainMessageLoop
0x00007ff707ef6b60 (Unity) WinMain
0x00007ff7092daf6e (Unity) __scrt_common_main_seh
0x00007ffe24507344 (KERNEL32) BaseThreadInitThunk
0x00007ffe260a26b1 (ntdll) RtlUserThreadStart

[MessageNetworkManager] CallCloudFunctionAsyncWithRetries
functionName: ClientRequestHandler tryNumber: 2

UnityEngine.Debug:LogWarning (object)
Longtooth.Words.WorldOfWordsExtensions:LogWarning (object,object) (at Assets/Scripts/Utilities/WorldOfWordsExtensions.cs:239)
Longtooth.Words.Networking.MessageNetworkManager/d__100`1:MoveNext () (at Assets/Scripts/Networking/MessageNetworkManager.cs:248)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Hi @samhain323

We were able to replicate the issue fairly easily in the end. The problem is the cloud code service is initialised with a unexpected default timeout of 10 seconds which is below what was intended so the client is closing the connection before a response can be returned and be properly handled.

The next package release should help rectify the unintended behaviour by increasing the default timeout.