Hi @Ibtekr_Club
Just to clarify, this error is happening BEFORE your code even runs. So the problem isn’t with your JavaScript itself, it’s with the payload arriving at the Code node.
That means anything you do to reduce the size, volume, or complexity of the data before it hits the Code node should help.
Here’s something you can try right away without waiting for support:
Add an Edit Fields (Set) node right before the Code node and keep only the minimal JSON fields you actually need — strip out any binary data or large objects. Also make sure you’re not sending a huge number of items at once. Using Split in Batches to process data in smaller chunks often helps avoid these timeouts.
And if your Code node is only doing simple mapping or filtering, consider replacing it with native nodes like IF, Set, or Item Lists. That way you avoid the task runner entirely and the timeout won’t even be a factor.
referece: