Hi, I made a restlet that creates invoices based o...
# suitescript
m
Hi, I made a restlet that creates invoices based on payloads received from another system. I read in the NS help that restlets have a execution time limit of 300 seconds. A request for a particularly big invoice (>1700 transaction lines) was just received and the invoice was successfully created, but in the execution log it had gone a full 7 minutes from start to end, which is way past the supposed 5 minute limit, and the sending system did not get a response even though the restlet finished running (the last line before the return statement is a log line which was logged). Does anyone have any experience/knowledge on what might have happened here?
Before this, the record was created in dynamic mode and then the execution failed with a execution time limit exceeded error, so I know it can happen
s
Did the sending system timeout and/or did it receive a connection reset from the NS side? I have seen this before where the caller disconnects thinking there will be no response coming from NS then the script does eventually finish but nobody is listening.
m
I will ask the developer on their end to see if that might be the case. Thank you! Just out of curiosity - you don’t happen to know how it was possible for the script to run for 7 minutes when the limit should be 5 minutes according to the documentation?
b
m
I know and that page says 300 seconds for restlets, which is 5 minutes, while this script ran for 7 minutes and reached its end. That’s what I’m confused about, even if I’m not complaining
b
read all the words, including the ones outside the table
👍 1