question

romesh avatar image
romesh asked

PlayFab sending back a 400 BadRequest in response to a backend server side 500

Why is PlayFab sending back a 400 BadRequest in response to a backend server side 500? This feels counter intuitive. Spent this morning chasing my tail looking for a malformed request on the client side because of the 400 response, only to finally realise that the inner part of the message was reporting a server side error. My client side request wasn't malformed in any way, so the 400 is very misleading.

6590-image.png

apis
image.png (93.0 KiB)
10 |1200

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

1 Answer

·
Neils Shi avatar image
Neils Shi answered

Sorry for the inconvenience. The http status code 400 usually indicates that parameters in request is invalid, or the request payload structure is invalid, but in rare cases, it may not be for this reason. We suggest you may diagnose the error through the details in the Error Message.

10 |1200

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

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.