You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fail: MagicOnion.Server.MethodHandler[91]
A hub method handler throws an exception occurred in IChatHub/Test3Async
MemoryPack.MemoryPackSerializationException: Sequence reached end, reader can not provide more buffer.
at MemoryPack.MemoryPackSerializationException.ThrowSequenceReachedEnd()
at MemoryPack.MemoryPackReader.GetNextSpan(Int32 sizeHint)
at MemoryPack.Formatters.DangerousUnmanagedFormatter`1.Deserialize(MemoryPackReader& reader, T& value)
at MemoryPack.MemoryPackSerializer.Deserialize[T](ReadOnlySequence`1& buffer, T& value, MemoryPackSerializerOptions options)
at MemoryPack.MemoryPackSerializer.Deserialize[T](ReadOnlySequence`1& buffer, MemoryPackSerializerOptions options)
at MagicOnion.Serialization.MemoryPack.MemoryPackMagicOnionSerializerProvider.MagicOnionSerializer.Deserialize[T](ReadOnlySequence`1& bytes) in E:\Projects\GitHub\MagicOnion\src\MagicOnion.Serialization.MemoryPack\MemoryPackMagicOnionSerializer.cs:line 45
at MagicOnion.Serialization.MemoryPack.MemoryPackMagicOnionSerializerProvider.MagicOnionSerializer.MagicOnion.Serialization.IMagicOnionSerializer.Deserialize[T](ReadOnlySequence`1& bytes)
at MagicOnion.Server.Hubs.StreamingHubMethodInvoker.StreamingHubMethodInvokerTask`1.InvokeAsync(StreamingHubContext context) in E:\Projects\GitHub\MagicOnion\src\MagicOnion.Server\Hubs\StreamingHubHandler.cs:line 157
at MagicOnion.Server.Hubs.StreamingHubBase`2.HandleMessageAsync() in E:\Projects\GitHub\MagicOnion\src\MagicOnion.Server\Hubs\StreamingHub.cs:line 184
The following function works fine:
Task Test1Async(int a);
Task Test2Async(int a, int b);
The text was updated successfully, but these errors were encountered:
Env: MagicOnion + MemoryPack
Ver: 5.1.8
Client: Unity 2021.3.12f1
Server: .NET 7.0 x64
Method:
Serialize exception:
The following function works fine:
The text was updated successfully, but these errors were encountered: