When I try to connect to my server build on PlayFab, I keep getting a 500 Internal Server Error. I've triple checked all gamemode names, executable name, build IDs and the like. What could be the issue? TitleID is 423D. I manage the whole thing with this code:
Was this recent? I was looking through the API call history for that title over the last day and see a matchmake call that returned an invalid parameters error and a successful startgame call.
Successful startgame call? I still got a 500 Internal Server Error on all my calls.
Also, can you re-upload the build you were trying to use, and configure it as it was at the time you saw this? There's no server build in your title right now: https://developer.playfab.com/en-US/423D/servers/builds
I can and will but I'm just worried about my server hours :P please shut down the server when you see the logs (which I assume is what you want to do) so I don't waste unnecessary testing time if that's possible, thanks
As long as you don't put a region on your build, we won't attempt to provision any VMs for them. Also, just to confirm, you did set a region originally, correct?
Answer by Brendan · Aug 24, 2018 at 03:54 AM
The build in your title is configured with the executable as "gameserver.exe", and there's a gameserver.exe at the root of your build zip file, so that's good. The only other reason you should be seeing a 500 error would be due to trying to do matchmaking before you have any servers in an active state. Please try this: Start a server in a region. Wait for the server to get to the Running state. Then try matchmaking. If that doesn't work, please provide the specifics of your test - all the parameters you're passing into the Matchmake or StartGame call, and the region you used for the test.
What I'm passing into StartGame is only
BuildVersion = "Test1", GameMode = "Basic", Region = Region.EUWest
Am I supposed to pass something more since I'm not giving a LobbyID?
No, those are the only required parameters. At this point, I'd have to test in your title directly. Do you mind if I turn on a server for a few minutes to check the results?
Not at all. I'll upload a new build for you to test on.
So, I activated your Test1 in one region - USEast. I waited for it to be in the Running state, and I sent a Matchmake call to it:
{ "BuildVersion": "Test1", "Region": "USEast", "GameMode": "Basic" }
The result was successful - no issues:
{ "code": 200, "status": "OK", "data": { "LobbyID": "12539931535607141036", "ServerHostname": "54.172.179.77", "ServerPublicDNSName": "ec2-54-172-179-77.compute-1.amazonaws.com", "ServerIPV6Address": "2600:1f18:70d:5100:7507:76f0:5036:8d98", "ServerIPV4Address": "54.172.179.77", "ServerPort": 9000, "Ticket": "90B9E199AA546042-0-6F7AA975A16A6BAB-423D-8D60CEABAE5B3ED-h/GXa8+qrKAYYDsyzQpBD72m6yFGHUc9knzM0Jer1NU=", "Expires": "2018-08-28T13:34:41.7000429Z", "Status": "Complete" } }
How come it returns a code 500 on my end? Perhaps it has to do with the client script?
Direct Challenges,Direct Challenges (via FB) 2 Answers
Confused about server setup - C# Custom Server, Unity Client 1 Answer
Matchmaking with server 2.0 1 Answer
What happens when a client calls ClientAPI.Matchmake then does not connect to a returned server? 1 Answer
How to get a BuildID from a SessionId? 2 Answers