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:
Create a new script inside ServerScriptService
Using the Cloud API, use the Get Instance method on the newly created script.
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.
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.