Zapier · Code by Zapier
Scripting payload too large
Short answer
This Code by Zapier error means the code and the data it processes exceed the 6 MB I/O limit of the Code step environment. Return only the keys you need, and filter or trim large API responses before returning them.
VerifiedLast verified
01Error text
Scripting payload too large.02Likely causes
- The environment for Code steps (AWS Lambda) has an I/O limit of 6 MB.
- The total size of the code and the data it processes cannot exceed that limit.
03How to fix it
- Reduce the data your function returns. Return only the keys you need.
- If processing a large API response, filter or trim the data before returning it.
04Official documentation
→Related errors
- Process exited before completing requestThis Code by Zapier error means the script completed without calling callback, often because a fetch().then() chain has no .catch(). Add .catch(callback) to the chain, or use await.
- 'NoneType' object does not support item assignmentThis Code by Zapier Python error means the code assigned into a value that is None. Initialize dicts and lists before assigning into them, and check input_data values for None first.
- You cannot return more than 250 items from a Code actionThis Code by Zapier error means the step returned more than the 250 items allowed in the output object. Return 250 items or fewer, or split the work across several Code steps.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for Zapier work:Open Zapier jobsZapier rates and salaries