Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization exception when creating party #12

Open
jmderuty opened this issue Sep 27, 2024 · 0 comments
Open

Deserialization exception when creating party #12

jmderuty opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jmderuty
Copy link
Member

Reproduction: rare

{"message":"Error cbf92b506fe84af2b404cfd892d9528c. An error occurred while executing procedure 'partymanagement.createsession'.","data":{"content":{"location":"scenes/partyManager/party-manager#0","context":{"template":"partyManager","sceneId":"party-manager","shardId":0},"message":"Error cbf92b506fe84af2b404cfd892d9528c. An error occurred while executing procedure 'partymanagement.createsession'.","data":{"Type":"MessagePackSerializationException","Message":"Failed to deserialize Stormancer.Server.Plugins.Users.Session value.","Frames":[" at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options)"," at MessagePack.MessagePackSerializer.Deserialize[T](ReadOnlySequence1& byteSequence, MessagePackSerializerOptions options, CancellationToken cancellationToken)"," at Stormancer.Server.Hosting.Serializers.S2SSerializer.TryDeserialize[T](ReadOnlySequence1 buffer, T& value, Int64& bytesRead)"," at Stormancer.Server.Hosting.Serializers.S2SSerializer.<>c__DisplayClass2_01.<DeserializeAsync>g__TryDeserializeAndAdvance|0(ReadResult readResult, T& value)"," at Stormancer.Server.Hosting.Serializers.S2SSerializer.<>c__DisplayClass2_01.<g__DeserializeAsyncImpl|1>d.MoveNext()","--- End of stack trace from previous location ---"," at Stormancer.Server.S2SOperationResult1.<GetResultAsync>g__ReadObject|3_0(CancellationToken ct) in /_/src/Stormancer.Plugins/Utilities/Stormancer.Server.Plugins.Utilities/S2SRequestHelpers.cs:line 218"," at Stormancer.Server.Plugins.Users.UserSessionProxy.GetSessionById(SessionId sessionId, CancellationToken cancellationToken) in /_/src/Stormancer.Plugins/Users/Stormancer.Server.Plugins.Users/obj/Debug/net8.0/Stormancer.Server.Plugins.Api.S2SProxyGenerator/Stormancer.Server.Plugins.Api.S2SProxyGenerator.S2SProxySourceGenerator/UserSessionController_proxy.cs:line 123"," at Stormancer.Server.Plugins.Users.UserSessionProxy.GetSessionById(SessionId sessionId, CancellationToken cancellationToken) in /_/src/Stormancer.Plugins/Users/Stormancer.Server.Plugins.Users/obj/Debug/net8.0/Stormancer.Server.Plugins.Api.S2SProxyGenerator/Stormancer.Server.Plugins.Api.S2SProxyGenerator.S2SProxySourceGenerator/UserSessionController_proxy.cs:line 123"," at Stormancer.Server.Plugins.Users.UserSessionImpl.GetUser(IScenePeerClient peer, CancellationToken cancellationToken) in /_/src/Stormancer.Plugins/Users/Stormancer.Server.Plugins.Users/UserSessionsProxy.cs:line 137"," at Stormancer.Server.PartyManagement.PartyManagementController.CreateSession(RequestContext1 ctx) in /_/src/Stormancer.Plugins/Party/Stormancer.Server.Plugins.Party/PartyManagementController.cs:line 70"," at Stormancer.Server.Plugins.API.ControllerFactory1.ExecuteRpcAction(ApiCallContext1 ctx, Func4 action)"," at Stormancer.Server.Plugins.API.ControllerFactory1.ExecuteRpcAction(ApiCallContext1 ctx, Func4 action)"," at Stormancer.Server.Plugins.API.ControllerFactory1.ExecuteRpcAction(ApiCallContext1 ctx, Func4 action)"," at Stormancer.Server.Plugins.Database.ElasticsearchExceptionHandler.RunRpc(ApiCallContext1 ctx, Func2 next)"," at Stormancer.Plugins.RpcService.<>c__DisplayClass13_0.<<AddProcedure>b__0>d.MoveNext()"],"InnerExceptions":[{"Type":"ArgumentException","Message":"An item with the same key has already been added. Key: gameVersion.clientVersion","Frames":[" at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)"," at MessagePack.Formatters.DictionaryFormatterBase`5.Deserialize(MessagePackReader& reader, MessagePackSerializerOptions options)"," at MessagePack.Formatters.Stormancer_Server_Plugins_Users_SessionFormatter24.Deserialize(MessagePackReader& reader, MessagePackSerializerOptions options)"," at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options)"],"InnerExceptions":[]}]}},"app":"/darktales/live-1-0/0fbe94f9-eed7-4c1b-929a-9dcdec4ecf35/25?"}}

@jmderuty jmderuty self-assigned this Sep 28, 2024
@jmderuty jmderuty added the bug Something isn't working label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant