Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Relay troubleshooting: Join code not found

Discussion in 'Relay' started by KingKRoecks, May 6, 2022.

  1. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    145
    I've been playing around with the BossRoom example and basically streamlined the UI to be a "Host" or "QuickJoin" rather than relying on the lobby list.

    I've been having some issues with Relay sometimes not allowing clients to connect to the host.

    (please ignore the timestamps)
    Client A will start a Lobby and begin Hosting.
    upload_2022-5-6_15-38-14.png

    Client B will QuickJoin.
    upload_2022-5-6_15-32-22.png

    When Client B gets successfully added to the Lobby, they're given the Relay Join Code.

    This Relay Join Code is passed to the "UnityRelayUtilities" class and ultimately calls this:
    Code (CSharp):
    1. Relay.Instance.JoinAllocationAsync(joinCode)
    The result of that call is an exception that is caught that basically says 404, code not found.

    At this point, I don't believe we have any access to logs or data about what's going on behind the scenes for our project in Services, so what can we do to troubleshoot something like this?
     
    wondermagic, APTEM59 and e-ruksov like this.
  2. unity_N1mY0ckRNAknhw

    unity_N1mY0ckRNAknhw

    Joined:
    Nov 19, 2021
    Posts:
    1
    same problem for me.
     
  3. anglerge

    anglerge

    Joined:
    Dec 18, 2020
    Posts:
    15
    same here
     
  4. Soloden

    Soloden

    Joined:
    Feb 15, 2023
    Posts:
    3
  5. sebk99

    sebk99

    Joined:
    Apr 15, 2020
    Posts:
    9
    Hi,
    in January I built demos with Netcode for gameobject v1.1 & relay which 1.0.5 which were working correctly.
    Now (early march) I get this error: "JoinAllocationAsync "join code not found"

    It looks like the Relay does not work with Netcode 1.1 anymore. I updated to the "non-recommended" version 1.2 and now it seems to work.

    Cheers
     
  6. wondermagic

    wondermagic

    Joined:
    Jul 14, 2017
    Posts:
    4
    Same issue for me. This "join code not found" error occurs from time to time. It's a problem from the relay service on Unity's servers. When it happens, I just leave it for a while and come back later to see it working. Hope they eradicate they issue soon.