question

esenkleiter avatar image
esenkleiter asked

CloudScriptAzureFunctionsReturnSizeExceeded

Can we increase the limit to prevent this error "CloudScriptAzureFunctionsReturnSizeExceeded" ?

In Cloudscript there is no limit for the returning json size?!

We also set GeneratePlayStreamEvent to false.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rick Chen avatar image
Rick Chen answered

By default, PlayFab supports the response size of 65536 bytes from Azure.

The limit of return size of CloudScript is enough for general purpose. However, there may be some other limits for CloudScript. Could you please describe what data is need to return from your Azure Function?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

esenkleiter avatar image
esenkleiter answered

Thanks for the response. At main menu we need to download player's current challenges(asynchronous matches), each containing player profiles of all participating players. With up to 10 concurrent challenges this can exceed 65kb. Well we thought there is no limit. Current workaround is to download one challenge per request.

Another case is downloading the game config at app startup. This contains a lot of title data and data from azure mongo db. Workaround here is to call the azure function directly (anonymous azure function access) and not via ExecuteScript and Playfab.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.