The problem is that it throws an error even if is inside the try-catch:
[Lobby]: NoOpenLobbies, (16006). Message: failed to find any open lobbies matching the search criteria
The “reason” inside the LobbyServiceException is that there is no lobby, but I should be able to get into the Catch and not throw any error.
You seamply should have errors your code, and since I’m using the official API this shouldn’t happen. I wanted to know if the API is broken or if I’m doing something wrong
@Max_power1965_1 - Correct me if I’m wrong, I think that you’re just referring to the fact that an error message gets logged in the console even though you’re catching the exception, right? If so, this is a know issue. The Lobby SDK is a little aggressive with logging errors in ADDITION to throwing exception for you to catch. We’re making some adjustments to prevent it from logging theses errors automatically. For now, as long as you’re catching the exception, you can just ignore that additional (but annoying) error log.
@atmuc - You can’t QuickJoin a lobby if you’re the “host” of the lobby (e.g. if the HostId property of the Lobby is the same as the logged in Player ID). The Lobby service will filter out all lobbies that you’re the host of so you’ll see the error “can not find a lobby” even though QueryLobbiesAsync will still return that lobby.
I believe that by default ParrelSync will log you in with the same user. There’s an extra flag, or some property you need to set in one of the instances to force it to use a different Anonymous user, and then QuickJoin should work properly.