I cant figure out what wrong with connecting as client in relay

can someone help i have been following this YouTube tutorial by Dapper Dino on making a join code but every time I try to connect as a client I get these errors

Screenshot 2025-02-11 103346

when I first click client they don’t show up and if I click again it says it can’t start an instance while already running but after a while and click again I get these errors

Can’t read the image. Please post error messages and code as text, and enclose it in code tags. Also, post your code.

It says page not found - that seems quite clear. It also says it didnt get a relay code, depending on how youre getting that relay code… but whereever you’re making a web call to, isnt found.

this is the Error: HttpException1: (404) HTTP/1.1 404 Not Found Unity.Services.Relay.Http.ResponseHandler.HandleAsyncResponse (Unity.Services.Relay.Http.HttpClientResponse response, System.Collections.Generic.Dictionary2[TKey,TValue] statusCodeToTypeMap) (at Library/PackageCache/com.unity.services.relay@1.1.1/Runtime/Http/ResponseHandler.cs:122)

This is my script for the client
public class ClientManager : MonoBehaviour
{
public static ClientManager Instance { get; private set; }
private void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
}
else
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
}

public async void StartClient(string joinCode)
{
    JoinAllocation allocation;

    try
    {
        allocation = await RelayService.Instance.JoinAllocationAsync(joinCode);
    }
    catch (Exception e)
    {
        Debug.LogError("Relay get join code request failed");
        throw;
    }

    var relayServerData = new RelayServerData(allocation, "udp");
    
    NetworkManager.Singleton.GetComponent<UnityTransport>().SetRelayServerData(relayServerData);
    
    NetworkManager.Singleton.StartClient();
}

}

did you configure relay on the unity services side?

Maybe not, I went back to see if I configured it correctly and it told me to install Unity Service but it was not in the package manager, and from what I have read I believe it’s been deleted or something.