I tried to install Vivox with chat voice into my game. My step by step were:
- UnityServices.InitializeAsync
- VivoxService.Instance.InitializeAsync()
- Wait for user to login as anonymous.
- await SignInAnonymouslyAsync
- VivoxManager.Instance.LoginToVivoxService()
- StartHost local for singleplayer.
- Connect to shared scene with deliciated server hosted by a server.
Sometime, I think maybe after 3 successful try with my editor. This error happen ! I had read some about maybe Vivox handles multiple incoming API calls in an arbitrary order. But I have no way to fix it.
Bonus: When I play Chat Sample from Unity Vivox official, login process take more than than me about 5 second and no error at all.
Thanks for help, expert !
HttpException: (404) HTTP/1.1 404 Not Found
Unity.Services.Vivox.Mint.Http.ResponseHandler.HandleAsyncResponse (Unity.Services.Vivox.Mint.Http.HttpClientResponse response, System.Collections.Generic.Dictionary2[TKey,TValue] statusCodeToTypeMap) (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/Generated/Http/ResponseHandler.cs:121) Unity.Services.Vivox.Mint.Http.ResponseHandler.HandleAsyncResponse[T] (Unity.Services.Vivox.Mint.Http.HttpClientResponse response, System.Collections.Generic.Dictionary
2[TKey,TValue] statusCodeToTypeMap) (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/Generated/Http/ResponseHandler.cs:227)
Unity.Services.Vivox.Mint.Apis.Default.DefaultApiClient.ConnectTokenV1Async (Unity.Services.Vivox.Mint.Default.ConnectTokenV1Request request, Unity.Services.Vivox.Mint.Configuration operationConfiguration) (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/Generated/Apis/DefaultApi.cs:111)
Unity.Services.Vivox.VivoxJWTTokenGen.FetchLoginMintTokenAsync () (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/VivoxServiceInternal.cs:1132)
Rethrow as MintException: HTTP/1.1 404 Not Found
Unity.Services.Vivox.VivoxJWTTokenGen.FetchLoginMintTokenAsync () (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/VivoxServiceInternal.cs:1137)
Unity.Services.Vivox.VivoxJWTTokenGen.GetTokenAsync (System.String issuer, System.Nullable1[T] expiration, System.String targetUserUri, System.String action, System.String tokenKey, System.String channelUri, System.String fromUserUri) (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/VivoxServiceInternal.cs:1118) Unity.Services.Vivox.LoginSession.LoginAsync (Unity.Services.Vivox.SubscriptionMode subscriptionMode, Unity.Services.Vivox.IReadOnlyHashSet
1[T] presenceSubscriptions, Unity.Services.Vivox.IReadOnlyHashSet1[T] blockedPresenceSubscriptions, Unity.Services.Vivox.IReadOnlyHashSet
1[T] allowedPresenceSubscriptions, System.String accessToken, System.AsyncCallback callback) (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/VivoxUnity/Private/LoginSession.cs:499)
Unity.Services.Vivox.VivoxServiceInternal.LoginAsync (Unity.Services.Vivox.LoginOptions loginOptions) (at ./Library/PackageCache/com.unity.services.vivox@16.0.1/Runtime/VivoxServiceInternal.cs:232)
VivoxManager.LoginToVivox () (at Assets/Scripts/Network Related/Vivox/VivoxManager.cs:161)
VivoxManager.LoginToVivoxService () (at Assets/Scripts/Network Related/Vivox/VivoxManager.cs:133)
ClientGameManager.AuthUser (AuthMethod authMethod, System.Action`1[T] callback) (at Assets/Scripts/Networking/Client/ClientGameManager.cs:64)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <787acc3c9a4c471ba7d971300105af24>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <10871f9e312b442cb78b9b97db88fdcb>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <10871f9e312b442cb78b9b97db88fdcb>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <10871f9e312b442cb78b9b97db88fdcb>:0)