My exact code looks like this:
var playFabResult = await PlayFabServerAPI.GetTitleDataAsync(new PlayFab.ServerModels.GetTitleDataRequest() { Keys = new List<string>() { "login_queue_players_per_second", "max_players_per_lobby", "server_v2_regions", "legiontd2_aelobby", "legiontd2_aelobby_test", "enable_azure_functions", } }); if (playFabResult.Error != null) { DeveloperApi.LogWarning("Failed to get title data"); DeveloperApi.LogWarning(JsonConvert.SerializeObject(playFabResult.Error)); return; }
Probably 80% of the time, the call succeeds and everything is fine. But about 20% of the time, it reaches the error case and prints this error:
{"HttpCode":0,"HttpStatus":null,"Error":2,"ErrorMessage":"The response ended prematurely.","ErrorDetails":null,"RequestId":null,"RetryAfterSeconds":null}
I know that API calls intermittently fail, which is why I have some retry logic, but it's extremely suspicious to me that it fails about 20% of the time. It's been like this for months.