question

Brent Batas (Lisk) avatar image
Brent Batas (Lisk) asked

UpdateUserData occasionally returns "The response ended prematurely"

99% of the time, UpdateUserData returns correctly.

However, sometimes I get this result:

{"HttpCode":0,"HttpStatus":null,"Error":2,"ErrorMessage":"The response ended prematurely.","ErrorDetails":null}

when printing out the contents of the PlayFabError.

I'm using the C# SDK.

Why does this happen? I currently just have exponential backoff/retry logic, but it feels like something is wrong if I keep getting this error unexpectedly. I'm not making very many API calls during the times this occurs.

sdks
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

·
Rick Chen avatar image
Rick Chen answered

As this issue cannot be reliably reproduced, it is hard to find out the cause of this issue with this error message. Please understand that the API calls are not 100% guarantee to be successful. This could just be a transient issue. It will be fine as long as you have the exponential backoff/retry logic.

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.