#Cloud script function [function name] returned value that was too large

3 messages · Page 1 of 1 (latest)

sour depot
#

Hi, I have a Cloud script function that should return about 80KB of json, but it's returning a 400 Error (in Unity):

HttpCode: 400, ErrorMsg: Cloud script function [Function Name] returned value that was too large.

The only documentation I could find online suggested the returned payload limit was 350KB.

Should I be able to return 80KB of json successfully?

silk stream
#

how on earth did you get a json file the size of 80kb... 😂
I'd recommend uploading such a file (even if its dynamically built data) and returning the download url, then creating a http request with a longer timeout... that'd be my suggestion

sour depot
#

Thanks for the reply,
I mean we're not talking huge numbers here. 80KB is only about 400 objects, each containing only 200 characters. A request returning 80KB of data should still only be taking milliseconds.
I'm not certain a timeout is the problem in this case.