Relay troubleshooting: Join code not found

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.

Client B will QuickJoin.

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:

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?

3 Likes

same problem for me.

same here

Same

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

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.

So is there any fix for it? This is still an issue. Sometimes relay throws an error that join code not found. Is there at least any way to check this error state in host side so player can get notified that something went wrong and they need to recreate host?

hi,
Relay has a timeout for every allocation. If the allocation is not bound to or if relay does not receive a ping at least once every 10 seconds it will invalidate the allocation and it’s related join code. Please make use NGO/UTP is initialized (StartHost) immediately after acquiring an allocation from relay, even before creating/sharing the join code.
Hope this helps.

That doesn’t help. Ofc host starts imminent after relay. The client gets error sometimes when trying to connect with that code…

2 Likes

still have this issue sometimes

Error still occuers sometimes

funny it is still occuring to me now in 2024

1 Like