question

Jon avatar image
Jon asked

400 Playfab BadRequest Retryable?

Should 400 : BadRequest be considered retryable?

These seem to be internet connection issues:

Endpoint: /Client/LoginWithAndroidDeviceID Code: 400 Status: BadRequest Unable to complete SSL connection


Endpoint: /CloudScript/ExecuteEntityCloudScript Code: 400 Status: BadRequest Failed to receive data

However, they are not listed in the docs as safe to retry:

https://docs.microsoft.com/en-us/gaming/playfab/api-references/global-api-method-error-codes

--

In some older forum posts, there are examples from Brendan where it seems BadRequest shouldn't be retryed ("invalid input parameters").

3 comments
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 ♦ commented ·

May I ask what's the SDK you are using? Can you consistently reproduce this issue? If this is an occasional issue, retry should be fine, but as Brendan has mentioned, if the error message is "Invalid input parameters", retry won't work because there should be a issue in the reuqest.

0 Likes 0 ·
Jon avatar image Jon Seth Du ♦ commented ·

Unity SDK

BadStatus is the HTTP status code, and "Unable to complete SSL connection" / "Failed to receive data" are the error messages.

It's not a recurring issue. We enabled some cloud logging for some users to sample and it is a pretty low %. It is around 0.05% - 0.15% of total request or so.

It most likely is due to poor internet connection or some packet loss so it is difficult to reproduce.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Jon commented ·

I think for now you can add some retry codes for certain login API calls.

0 Likes 0 ·

0 Answers

·

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.