All of the errors I get at the moment revolve around timeout errors, the actual error seems to be determined by the call made.
For example:
"FunctionName": "LeagueActive", "ProcessorTimeSeconds": 0.0, "ExecutionTimeSeconds": 4.0462289999999994, "MemoryConsumedBytes": 392424, "HttpRequestsIssued": 0, "APIRequestsIssued": 1,
Caused by the read of a single internalTitleData entry. This entry is written too twice every two weeks (midnight on Friday - set to true - and 1am on Friday - set to false).
handlers.LeagueActive = function(args) { var response = { LeagueActive: true }; var internalTitleData = server.GetTitleInternalData({ Keys: ["leagueReseting"] }).Data; if(internalTitleData && internalTitleData.leagueReseting) { var isReseting = JSON.parse(internalTitleData.leagueReseting); response.LeagueActive = !isReseting; } return response; }
The other calls are similar. Often times stacked with three or four calls running timing out at the same time.
Is there anything at all I can do ?
I had been going through all the cloudscript functions I had to reduce their execution times and reduce the number of API calls where possible, stacking statistics updates and userdata changes were I could, etc. Then last night this one showed up and I'm at a loss as to what I can do to stop something like this.
In case you're wondering about the error:
"Logs": [ { "Message": "PlayFab API request failure", "Level": "Error", "Data": { "request": { "Keys": [ "leagueReseting" ] }, "error": "Timeout", "api": "/Server/GetTitleInternalData" } } ], "Error": { "Message": "InternalServerError", "Error": "InternalServerError", "StackTrace": "Error\n at handlers.LeagueActive (C615-main.js:2081:33)" } },