I am writing a Cloudscript handler which calls /Server/GetAllSegments API using the built-in "server" object. But unfortunately this call causes an exception which seems to happen somewhere inside PlayFab code:
Error: The best overloaded method match for 'PlayFab.LogicServer.Source.PlayFabAPI.api_request(string, string, string)' has some invalid arguments at HostDelegate.<anonymous> (<anonymous>) at Object.server_request (Script:153:41) at Object.server.GetAllSegments (Script:519:71) at handlers.abcdef (XXXXX-main.js:86:26) at Object.invokeFunction (Script:116:33)
Minimal example code to trigger this:
handlers.abcdef = function(args, context) { const segments = server.GetAllSegments(); }
Just call this Cloudscript and it should throw the above error.