The error happens in the terminal when deploying the theme/Extension.
The reason for the error message is due to the complex file structure of the theme.
gulp theme:deploy and gulp extension:deploy commands use SuiteScript Restlet service requests to upload the theme and extension development files to the NetSuite file cabinet.
And, SuiteScript’s governance model limits the number of units each Restlet request can use.
So if the number of files per chunk increases then the limit may exceed.
The chunk_size property in the <Top-LevelDevelopmentDirectory/gulp/config/config.json file controls how many files are uploaded per Restlet request.
steps for resolving the error.
- Got to the local directory
gulp/config/config.jsonfile of the theme folder. - Open the
config.jsonfile - Change the value of “chunk_size” to 30 (the default value is 80, we need to reduce the value for avoiding this error)
- Save the file and deploy it again.
- We can also try with different values under 80.