Hello everyone,
I implemented a telemetry system to collect errors in my game. According to the reports I've collected, there's one error that looks like there's something wrong with the Unity SDK.
How I collect error reports is that basically, the client executes the error handling (the handling that has PlayFabError class) and send a bug report automatically. I collect the "PlayFabErrorCode" and the "ErrorMessage".
Regardless of what CloudScript function is called, this issue happens rarely. So, it should be related to the ExecuteCloudScript logic in the SDK.
This the error report I collected:
"Error": 1123, "ErrorMessage": "Unhandled error in PlayFabUnityHttp: System.IndexOutOfRangeException: Index was outside the bounds of the array.\n at PlayFab.Internal.PlayFabUnityHttp+<Post>d__12.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 \n at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0 "
The code 1123 says this:
ServiceUnavailable (1123): Indicates that PlayFab may be having a temporary issue or the client is making too many API calls too quickly.
According to the error message, it looks like it doesn't related to the number of API calls nor PlayFab but the SDK. Also, PlayFab returns a wrong error code for this I guess (or the default error code is 1123 and this case isn't covered).