question

Chiaki Naranjo avatar image
Chiaki Naranjo asked

FindLobbiesRequest does not return anything

Hi,

We've encountered an issue with the FindLobbiesRequest API, and it appears to be returning no results. Would it be possible for us to seek assistance in resolving this matter?

Repro Steps:

  1. Create a looby using https://learn.microsoft.com/en-us/rest/api/playfab/multiplayer/lobby/create-lobby?view=playfab-rest with AccessPolicy Public and SearchData containing string_key1 that equals some value (1111 for example);

  2. Try to find this lobby using https://learn.microsoft.com/en-us/rest/api/playfab/multiplayer/lobby/find-lobbies?view=playfab-rest with Filter equals "`string_key1 eq 1111`";

Actual Result: FindLobbiesRequest returns nothing.

However, if this lobby is subscribed to by https://learn.microsoft.com/en-us/rest/api/playfab/multiplayer/lobby/subscribe-to-lobby-resource?view=playfab-rest, then FindLobbiesRequest will return correct lobby that was just created.

Thank you in advance.

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

By default, the Lobby needs a connected entity to be searchable. For more details, please see UseConnections section in CreateLobby API. Otherwise, if you do not need real-time notifications, you can set UseConnections to false and also OwnerMigrationPolicy to None, then lobbies do not need connections to be searchable. Refer to Can't Find the Lobby - Playfab Community.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Chiaki Naranjo avatar image Chiaki Naranjo commented ·

Thank you so much for your quick response! We will look into them.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.