Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by k-krrs · Aug 22, 2018 at 09:05 PM · Custom Game ServersMatchmaking

Matchmake and StartGame returning 500 Internal Server Error

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:

https://pastebin.com/3f49GyVM

Comment

People who like this

0 Show 6
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Andy ♦♦ · Aug 23, 2018 at 12:41 AM 0
Share

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.

avatar image k-krrs Andy ♦♦ · Aug 23, 2018 at 07:01 PM 0
Share

Successful startgame call? I still got a 500 Internal Server Error on all my calls.

avatar image Brendan ♦♦ · Aug 23, 2018 at 04:09 AM 0
Share

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

avatar image k-krrs Brendan ♦♦ · Aug 23, 2018 at 07:03 PM 0
Share

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

avatar image Andy ♦♦ k-krrs · Aug 24, 2018 at 12:43 AM 0
Share

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?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment

People who like this

0 Show 12 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image k-krrs · Aug 24, 2018 at 05:35 PM 0
Share

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?

avatar image Brendan ♦♦ k-krrs · Aug 25, 2018 at 08:02 AM 0
Share

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?

avatar image k-krrs Brendan ♦♦ · Aug 25, 2018 at 11:44 AM 0
Share

Not at all. I'll upload a new build for you to test on.

Show more comments
avatar image k-krrs · Aug 28, 2018 at 12:30 PM 0
Share

@Brendan sorry for the wait, I uploaded a build now.

avatar image Brendan ♦♦ k-krrs · Aug 28, 2018 at 01:38 PM 1
Share

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"
    }
}
avatar image k-krrs Brendan ♦♦ · Aug 28, 2018 at 01:46 PM 0
Share

How come it returns a code 500 on my end? Perhaps it has to do with the client script?

https://pastebin.com/NmxXN8Vs

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    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

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges