question

lordsplendidhumility avatar image
lordsplendidhumility asked

Matchmaking calls fail with a generic http error when API data is compressed

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)

Matchmaking
1 comment
10 |1200

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

lordsplendidhumility avatar image lordsplendidhumility commented ·

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.

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

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.

1 comment
10 |1200

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

drallcom3 avatar image drallcom3 commented ·

Can you maybe disable it by default? I run into this trap every time I update the SDK...

0 Likes 0 ·

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.