question

Mark Bryant avatar image
Mark Bryant asked

Missing values in CancellationReason enum (.NET SDK)

Using the PlayFabAllSDK Nuget Package, an attempt to call

PlayFabMultiplayerAPI.GetMatchmakingTicketAsync() threw an ArgumentException during deserialisation of the response from the server.

It appears that the PlayFab.MultiplayerModels.CancellationReason enum type is missing the "ServerAllocationFailed" value.

I can provide the call stack if required.

REPRODUCTION

1. Upload a server build to PlayFab

2. Create a matchmaking queue, tick "Enable server allocation", and enter the Build id

3. Delete the server build

4. Perform matchmaking requests the for the newly created queue

5. Call GetMatchmakingTicketAsync() to retrive the result of the ticket

EXPECTED OUTCOME

The matchmaking result to return a result with "CancellationReason" set to ServerAllocationFailed

OBSERVED OUTCOME

An ArgumentException thrown deep inside the PlayFab SDK.

Matchmaking
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 answered

Thanks for your report. We have filed a bug for the missing value in CancellationReason enum.

10 |1200

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

brandon@uprootstudios.com avatar image
brandon@uprootstudios.com answered

I made a post about the very same issue on Saturday, no answers yet though.

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.

Mark Bryant avatar image Mark Bryant commented ·

Ah yes, thanks, I searched for "CancellationReason" but found no results.

1 Like 1 ·

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.