I got this error occasionally while uploading small size file(5~15k), sometime successful, sometime get this error -- maybe once per 5 times, very strange.
My network is stable. Any clue?
I got this error occasionally while uploading small size file(5~15k), sometime successful, sometime get this error -- maybe once per 5 times, very strange.
My network is stable. Any clue?
Can you grab the full response payload? I'm curious what precise error code is being returned. With small files, it might be that you're not waiting for previous file operations to complete.
Are you calling the API for one file at a time, or all at once?
How to grab the full response payload?
I calling the API for one file at a time, followed the tutorials https://docs.microsoft.com/en-us/gaming/playfab/features/data/playerdata/entity-files
I got the PlayfabError.ToString logged, it contains the error code "ServiceUnavailable":
/File/InitiateFileUploads PlayfabError(ServiceUnavailable, Unknown Error, 400 BadRequest)
I did a little more digging. That error occurs when the underlying http transport returns "Unknown Error" instead of an actual response payload. This could happen for any number of reasons, but I think it's generally related to disruptions in the local network. You might be able to just handle the error and retry.
If that's not sufficient, could you share what game engine you're working in and what http transport is being used? For Unity, that would be UnityWebRequest, WWW, or HttpWebRequest.
I'm using Unity with UnityWebRequest.
The WWW is obsolete and HttpWebRequest seems need more settings, so i just use UnityWebRequest.
2 People are following this question.