Closed notSenior closed 1 year ago
Colyseus.MatchMakeException: Unexpected end of JSON input at Colyseus.ColyseusClient.CreateMatchMakeRequest[T] (System.String method, System.String roomName, System.Collections.Generic.Dictionary`2[TKey,TValue] options, System.Collections.Generic.Dictionary`2[TKey,TValue] headers) [0x0016a] in .\Library\PackageCache\io.colyseus.sdk@e4ed81cc3a\Runtime\Colyseus\Models\ColyseusClient.cs:406 at Colyseus.ColyseusClient.JoinById[T] (System.String roomId, System.Collections.Generic.Dictionary`2[TKey,TValue] options, System.Collections.Generic.Dictionary`2[TKey,TValue] headers) [0x00037] in .\Library\PackageCache\io.colyseus.sdk@e4ed81cc3a\Runtime\Colyseus\Models\ColyseusClient.cs:155 at Game.NetWork.ColyseusService.JoinById (System.String roomId) [0x0006e] in C:\Users\Ymont\Desktop\nidum_arena\Assets\Project\Scripts\NetWork\ColyseusService.cs:40 at Main.Start () [0x000ef] in C:\Users\Ymont\Desktop\nidum_arena\Assets\Project\Scripts\Main.cs:34 UnityEngine.Debug:LogError (object) Main/<Start>d__4:MoveNext () (at Assets/Project/Scripts/Main.cs:41) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException (System.Exception) Game.NetWork.ColyseusService/<JoinById>d__4:MoveNext () (at Assets/Project/Scripts/NetWork/ColyseusService.cs:57) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Colyseus.ColyseusRoom`1<RoomStore>>:SetException (System.Exception) Colyseus.ColyseusClient/<JoinById>d__16`1<RoomStore>:MoveNext () (at ./Library/PackageCache/io.colyseus.sdk@e4ed81cc3a/Runtime/Colyseus/Models/ColyseusClient.cs:155) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Colyseus.ColyseusRoom`1<RoomStore>>:SetException (System.Exception) Colyseus.ColyseusClient/<CreateMatchMakeRequest>d__26`1<RoomStore>:MoveNext () (at ./Library/PackageCache/io.colyseus.sdk@e4ed81cc3a/Runtime/Colyseus/Models/ColyseusClient.cs:415) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<string>:SetResult (string) Colyseus.ColyseusRequest/<Request>d__3:MoveNext () (at ./Library/PackageCache/io.colyseus.sdk@e4ed81cc3a/Runtime/Colyseus/Request.cs:131) System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run () Colyseus.ColyseusUnityWebRequestAwaiter:OnRequestCompleted (UnityEngine.AsyncOperation) (at ./Library/PackageCache/io.colyseus.sdk@e4ed81cc3a/Runtime/Colyseus/Utils/UnityWebRequestAwaiter.cs:49) UnityEngine.AsyncOperation:InvokeCompletionEvent ()
What could be reason for this error?
await _client.JoinById<RoomStore>(roomId);<-- RoomStore works on js
await _client.JoinById<RoomStore>(roomId);
error appeared after migration from js
client version 0.15.2 server version 0.15
Hi @notSenior, have you managed to fix this on your end? Would you mind sharing the solution in case somebody also faces this error? Cheers!
Change soket protocol from ws to wss.
What could be reason for this error?
await _client.JoinById<RoomStore>(roomId);
<-- RoomStore works on jserror appeared after migration from js
client version 0.15.2 server version 0.15