Search Unity

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

Resolved [Lobby]: NoOpenLobbies, (16006). Message: failed to find any open lobbies matching the search crite

Discussion in 'Lobby' started by LinQJ, Mar 16, 2023.

  1. LinQJ

    LinQJ

    Joined:
    Jun 11, 2015
    Posts:
    2
    A: player id= "v9h0ZAwMSj7a18pALpzlb0tox5iD",
    B: player id= "pMtFfT9f76VpJGhD3zDHeEWYaYML"

    B use QuickJoinLobbyAsync and no set Filter

    var joinRequest = new QuickJoinLobbyOptions
    {
    //Filter = filters,
    Player = new Player(id: uasId, data: CreateInitialPlayerData(userDataStr))
    };
    return m_CurrentLobby = await LobbyService.Instance.QuickJoinLobbyAsync(joinRequest);

    Result:

    [Lobby]: NoOpenLobbies, (16006). Message: failed to find any open lobbies matching the search criteria
    UnityEngine.Logger:LogError (string,object)
    Unity.Services.Lobbies.Logger:LogError (object) (at Library/PackageCache/com.unity.services.lobby@1.0.3/Runtime/Utils/Logger.cs:17)
    Unity.Services.Lobbies.Internal.WrappedLobbyService:ResolveErrorWrapping (Unity.Services.Lobbies.LobbyExceptionReason,System.Exception) (at Library/PackageCache/com.unity.services.lobby@1.0.3/Runtime/SDK/WrappedLobbyService.cs:417)
    Unity.Services.Lobbies.Internal.WrappedLobbyService/<TryCatchRequest>d__22`2<Unity.Services.Lobbies.Lobby.QuickJoinLobbyRequest, Unity.Services.Lobbies.Models.Lobby>:MoveNext () (at Library/PackageCache/com.unity.services.lobby@1.0.3/Runtime/SDK/WrappedLobbyService.cs:359)
    System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Lobbies.Response`1<Unity.Services.Lobbies.Models.Lobby>>:SetException (System.Exception)
    Unity.Services.Lobbies.Apis.Lobby.LobbyApiClient/<QuickJoinLobbyAsync>d__14:MoveNext () (at Library/PackageCache/com.unity.services.lobby@1.0.3/Runtime/Apis/LobbyApi.cs:451)
    System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Lobbies.Http.HttpClientResponse>:SetResult (Unity.Services.Lobbies.Http.HttpClientResponse)
    Unity.Services.Lobbies.Http.HttpClient/<MakeRequestAsync>d__3:MoveNext () (at Library/PackageCache/com.unity.services.lobby@1.0.3/Runtime/Http/HttpClient.cs:47)
    System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Lobbies.Http.HttpClientResponse>:SetResult (Unity.Services.Lobbies.Http.HttpClientResponse)
    Unity.Services.Lobbies.Http.HttpClient/<CreateWebRequestAsync>d__7:MoveNext () (at Library/PackageCache/com.unity.services.lobby@1.0.3/Runtime/Http/HttpClient.cs:138)
    System.Runtime.CompilerServ
     

    Attached Files:

  2. veleek_unity

    veleek_unity

    Ben Randall Unity Technologies

    Joined:
    Aug 25, 2021
    Posts:
    59
    Based on the log file you attached, the host of the created lobby is Player B (
    hostId = "pMtFfT9f76VpJGhD3zDHeEWYaYML"
    ). So the quick join is failing as expected.

    Were you intending to create the lobby as Player A?
     
  3. LinQJ

    LinQJ

    Joined:
    Jun 11, 2015
    Posts:
    2
    Yes, I found this problem, I created Lobby with Player A (LobbyService.Instance.CreateLobbyAsync), but the log returned by Player A shows Player B's hostId = "pMtFfT9f76VpJGhD3zDHeEWYaYML", not Player A's hostId
     
  4. Slothless

    Slothless

    Joined:
    Jul 12, 2022
    Posts:
    1
    I fix the problem. Just need to build the app and test on that. You guys shouldn't use Parallel Sync because it will be considered as the same id.
     
    MarcoZVincenzi likes this.
  5. MarcoZVincenzi

    MarcoZVincenzi

    Joined:
    Mar 3, 2022
    Posts:
    15
    Does this only happen on anonymously-authenticated sessions? Or do they share the actual access token?