<@U9U5W8Z52> that sounds like you may have a recur...
# suitescript
j
@Gustav that sounds like you may have a recursive function or a function that calls lots of other functions until the call stack limit is exceeded? It sounds like more of a Javascript issue than a NetSuite one but I'm not 100% sure.
👍 1
b
never-ending recursion was my issue last time i got such an error message.
g
@jmacdonald @Ben VanderBeek I’m using http://caolan.github.io/async And it seems that there’s a quite limiting callstack limit in Netsuite. Adding 100+ line items to an salesorder makes a lot of functions calls. No infinite recursion but a distinct high number of calls. In async and nodejs you can tell a async to wait for
next tick
and not building the whole function call tree at once. But since Netsuite not implementing
setTimeout
or
yield
you cannot use it. So much for trying to write cleaner code with a control flow framework. Back to nested try catches 😞
b
😞 indeed!