In Unity 2.018.2.7f1, with a Request Type of "Unity Web Request" set (the default value), and with "Compress API Data" enabled (the default value), calls to either PlayFabClientAPI.Matchmake() (from a client) or PlayFabClientAPI.RedeemMatchmakerTicket() (from a custom server build) fail with a "Generic/unknown HTTP error" error message. All other API calls I've tried (login, fetching title data, fetching title news, etc) appear to work correctly; of our current limited PlayFab integration, only Matchmaking-related calls are generating errors for us.
If "Compress Api Data" is disabled, then both those matchmaking calls work successfully.
If I switch from "Unity Web Request" to "Unity Www" and keep "Compress Api Data" enabled, the matchmaking calls still fail, but now fail with a "500 Internal Server Error" message instead of the "Generic/unknown HTTP error" from the "Unity Web Request".
If I switch from "Unity Web Request" to "Http Web Request" and keep "Compress Api Data" enabled, then the matchmaking calls all work correctly (but from an inspection of the code, it appears that this request type ignores that option and just sends all requests uncompressed regardless)
I've also verified that this happens in the generic PlayFabGameServerClientExample project (https://github.com/PlayFab/PlayFabGameServer), if you turn on API data compression there.
Answer by Brendan · Sep 14, 2018 at 03:39 AM
Yes, as mentioned in this thread (https://community.playfab.com/questions/12673/500-error-with-matchmake-api.html), please do not use the Compress API Data option. We'll be enabling it in a future release.
Can you maybe disable it by default? I run into this trap every time I update the SDK...
Matchmaking stopped working for me + unity downloads wrong secret key 1 Answer
PlayFab Error /Match/GetMatch:Empty 11 Answers
Missing values in CancellationReason enum (.NET SDK) 2 Answers
Matchmaking Error 1 Answer
ListQosServers suddenly returning error in all builds (including older builds that worked for weeks) 1 Answer