Open Cloud: Get Instance always returns code 422 on children inside StarterPlayerScripts or ServerScriptService

Using the Get Instance method (Instance | Documentation - Roblox Creator Hub) on an instance inside either ServerScriptService or StarterPlayer.StarterPlayerScripts always returns code’: 422, ‘message’: ‘Response payload too large to return’.

I have tested this on the instance types: “Script”, “LocalScript”, and “ModuleScript”.

To Replicate:

  1. Create a new script inside ServerScriptService
  2. Using the Cloud API, use the Get Instance method on the newly created script.
  3. It will return error code 422

Note: If you move the exact same script into ReplicatedStorage and then get the instance with Open Cloud, it works as intended.

A private message is associated with this bug report

This is just an acknowledgment announcement!

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for flagging!

We’ve determined that it’s the ListInstanceChildren operation (Instance | Documentation - Roblox Creator Hub) that is returning the 422 error rather than GetInstance.

ListInstanceChildren returns the script contents of any Script instances as well as metadata. That means if there are many scripts under the same parent (or a few large ones), the total size of the result can be large enough to exceed the maximum response size, resulting in the 422 error. This is intended behavior.