Document Services API Node JS - Socket Hang up
Hi,
I've created a Node JS solution using the document services API which converts ~15 files to PDF, then combines them to a single PDF.
Almost every time i run it, one of the PDF conversion or combining operations fails with 'ServiceApiError: request timed out, 10 seconds expired' and 'Unexpected Error, request could not be completed Error: socket hang up'.
Due to how common this error is, the solution is currently unusable.
I saw another post on here mentioning a similar error and it was left that it was probably a connectivity issue. I do not beleive this is the case though. The Node JS app is running on a server in a corportate data centre and we do not have connection problems.
I also want to mention that the error is not occuring on a specific file conversion or combine. It changes each run. I've also tried to throttle it to reduce any potential connectivity issues by running all of the operations synchronously (1 by 1), rather than all at the same time. This didn't seem to make a difference.
Has anyone had experience with this or can suggest what I can do?
Thanks!
