Hello together.
I currently face a randomy occuring error when sending a playfab heartbeat.
This boils down to the following line:
bool isGzipCompressed = responseBytes != null && responseBytes[0] == 31 && responseBytes[1] == 139;
where it throws the following error:
Unhandled error in PlayFabUnityHttp: System.IndexOutOfRangeException: Index was outside the bounds of the array. at PlayFab.Internal.PlayFabUnityHttp+<Post>d__12.MoveNext ()
I tried to find a pattern with it but it just seems to randomly pop up. I send the heartbeat about every minute. this error occures every 6-9 heartbeats.
Mostly it works again if i just call another heartbeat but sometimes it ends in only invalid responses.
code to call the heartbeats:
var request = new PlayFab.ServerModels.RefreshGameServerInstanceHeartbeatRequest() { LobbyId = ID };
PlayFab.PlayFabServerAPI.RefreshGameServerInstanceHeartbeat( request, (PlayFab.ServerModels.RefreshGameServerInstanceHeartbeatResult r) => res = r, (PlayFab.PlayFabError _error) => { heartbeatError = true; error = _error; } );
thx in advance for any insight in this matter!