When trying to save an update to our Cloud Script, I receive this error regarding the new "server.GetPlayersInSegment();" call. I'm unsure if there is something I should be doing differently when calling this function.
Again, this is not during runtime, this is just when trying to save the cloud script update.
The Error:
TypeError: Cannot read property 'server_request' of undefined at server.GetPlayersInSegment (Script Document:535:76) -> server.GetPlayersInSegment = function(request) { return __playfab_internal.server_request('/Server/GetPlayersInSegment', request); }
The call:
var allPlayersSegmentResult = server.GetPlayersInSegment({ "SegmentId" : ALL_PLAYERS_SEGMENT_ID, "MaxBatchSize" : 2000, "SecondsToLive" : 30 });
Thanks,
-Andrew