question

Dima Fil avatar image
Dima Fil asked

Exception: MultiplayerServerTooManyRequests

Im created build from docker image on linux

and after first client send message from example WindowsRunnerCSharpClient (from docs) im getting this exception from server

but from received host 20.67.230.172:30000 im getting response and log

"ProcessRequests Send responded" its my log from my server.

bug repetition 100% - build server - deploy - send first msg - send second - exception.

Linux Vm is available.

sdksCustom Game Serversmultiplayer
myrvp.png (11.6 KiB)
1rzcd.png (39.1 KiB)
3 comments
10 |1200

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

Dima Fil avatar image Dima Fil commented ·

MultiplayerServerTooManyRequests - NoHostsAvailableInRegion - No Hosts available in regions 'WestEurope,NorthEurope,EastUs,EastUs2,NorthCentralUs,CentralUs,SouthCentralUs,WestUs,SoutheastAsia,EastAsia,BrazilSouth', please retry.
Unhandled exception: System.Exception: Allocation failed with HttpStatus=TooManyRequests
at WindowsRunnerCSharpClient.Program.Run(String titleId, String playerId, String buildId, Boolean verbose) in E:\work\PlayFabProject\MpsSamples\WindowsRunnerCSharp\WindowsRunnerCSharpClient\Program.cs:line 100
at System.CommandLine.Invocation.CommandHandler.GetResultCodeAsync(Object value, InvocationContext context)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Dima Fil commented ·

The error indicates that there is no available server in this region can be allocated. I am not sure what does "send first msg - send second" mean in your question.

My suggestion for now is to increase "Servers per machine" value in the build configuration and also add more Target standby and Maximum servers in Regions page. Please also note to shutdown running instances when tests end.

0 Likes 0 ·
Dima Fil avatar image Dima Fil commented ·

"send first msg - send second" its a run example from this document

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/windows-runner-sample

i mean i have run this project https://github.com/PlayFab/MpsSamples/tree/master/WindowsRunnerCSharp/WindowsRunnerCSharpClient repeatedly - first run was successful, second exception

bug repetition 100%

0 Likes 0 ·
Seth Du avatar image
Seth Du answered

The error reports a general error message that indicating the server doesn't have enough host available. May I have you title ID?

Since you didn't provide the API request content, I am not sure how you request the server. Do you define the correct region in the request? Have you shut down the running server when the next testing?

10 |1200

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

Dima Fil avatar image
Dima Fil answered

"send first msg - send second" its a run example from this document

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/windows-runner-sample

i mean i have run this project https://github.com/PlayFab/MpsSamples/tree/master/WindowsRunnerCSharp/WindowsRunnerCSharpClient repeatedly - first run was successful, second exception

bug repetition 100%

4 comments
10 |1200

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

Seth Du avatar image Seth Du ♦ commented ·

Thanks for the information, I will try to reproduce this issue.

0 Likes 0 ·
Dima Fil avatar image Dima Fil Seth Du ♦ commented ·

did you repeat the problem?

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Seth Du ♦ commented ·

The document and repository are for deploying server build on Windows Container. Have you followed the instructions on Create and deploy Linux container images - PlayFab | Microsoft Docs to create your own customized container images? I am still working on the reproduction and your patience is appreciated.

0 Likes 0 ·
Dima Fil avatar image Dima Fil Seth Du ♦ commented ·

Im created image end deploy on linux. I want to connect to MultiplayerServer by Unity after Playfab autorization, how can i do this?

0 Likes 0 ·
Dimitris-Ilias Gkanatsios avatar image
Dimitris-Ilias Gkanatsios answered

For Linux Game Servers, feel free to check our Linux Game Servers quickstart on YouTube (19) Azure PlayFab Multiplayer Servers Quick Start (Linux Game Servers) - YouTube

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.