Hi team
I have an eventHandler (java code) that uses the openpdf library. It works correctly locally with CodeRunner, but when it is deployed it ends with a timeout.
After investigation I found that it blocks in the initialization of the PdfWriter.
Hi @viktor.liablin
Any update on this issue?
BTW, even if I deploy the code as service, I’m getting the same issue. It works using CodeRunner, but when deployed, the code is blocked at this line : writer = PdfWriter.getInstance(document, byteArrayOutputStream); until getting timeout (5 sec for eventhandler, and 15sec for service).
Below is the answer of the service:
400Bad Request, 15.12 s
{
“code”: 14004,
“message”: “Service invocation failed: Custom business logic execution has been terminated because it did not complete in permitted time - 15 seconds in BusinessLogicExecutionTimeoutException”,
“errorData”: {}
}
Where does PdfWriter write the output? If it is local file system, it will not be able to because local file system is not accessible in the cloud code runner.
Unfortunately, I cannot give you an answer to this problem yet.
An internal ticket has been created already for this issue.
We will let you know when there are investigate results on this issue.
Sorry for the inconvenience.
Hi @viktor.liablin
any progress on the ticket?
I’m deploying this feature on my own backend, which does not make any sense when we have Backendless!!
Thanks for your help^
Kind regards
Hi @Volodymyr_Ialovyi
It is working in my SpringBoard app : E81A9468-7B95-85B1-FF02-6F5B032E7F00.
But I’m still getting the same errors in Prod (Cloud9) app 4F036E66-2926-B11C-FF1F-741011904C00
400 - Service invocation failed: Custom business logic execution has been terminated because it did not complete in permitted time - 15 seconds in BusinessLogicExecutionTimeoutException (14004)