Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question GetPayloadAllocationFromJsonAs does sometimes not return anything

Discussion in 'Matchmaker' started by Lemior, Aug 12, 2023.

  1. Lemior

    Lemior

    Joined:
    Nov 12, 2020
    Posts:
    15
    Hi,

    im currently running my netcode game with unity game server hosting and matchmaker.

    The problem is that sometimes
    Code (CSharp):
    1. var payloadAllocation = await MultiplayService.Instance.GetPayloadAllocationFromJsonAs<MatchmakingResults>();
    never returns anything and just waits there forever.

    Because this occurs for me rarely (1 out of 100 sessions) and with no obvious reason i can't give further details. Sry for that.

    I opened this thread because i wanted to ask if someone also experiences this issue and may have found a reason for this behaviour.

    Thank you for your help.