question

epp avatar image
epp asked

Unstable work of RequestMultiplayerServer API

From time to time "RequestMultiplayerServer" API can't activate server properly (we use method PlayFabMultiplayerAPI.RequestMultiplayerServerAsync)

For example:
1) We have 2 "Standing by" servers
2) We call "RequestMultiplayerServer" with our custom session id
3) We got error:
"MultiplayerServerTooManyRequests - NoHostsAvailableInRegion - No Hosts available in regions 'NorthEurope', please retry.
2022-09-23T16:19:00.611119845Z Failed to Enumerate RequestId. Exception message: Enumeration has not started. Call MoveNext.
2022-09-23T16:19:00.611131745Z"

At the same at Multiplayer/Build/Servers we see
1) We have 2 "Standing by" servers
2) PlayFab Activate TWO servers (instead of one) with RANDOM session ids (instead of our custom id)
3) Nothing else happens



Why is it happening? Especialy last two days (before everything works quite fine)

apismultiplayer
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

·
Gosen Gao avatar image
Gosen Gao answered

Based on your description, it seems that other requests are sent before you call RequestMultiplayerServer. As a result, the two standby servers became active with different session IDs, causing your request to fail. You can check the "server_requested" event in the Data Explorer to see if there are other requests.

10 |1200

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

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]