platform
platform copied to clipboard
Set timeout for openText Method (receiviing .SocketTimeoutException after 10 seconds)
We use the openText Method to generate reports via a PDF Report engine, which calls a link and returns a PDF document.
With the new JS Feature, we can do now everything in the backend (by using openText and storing the document with JavaScript), but if the generation of the report takes longer than 10 seconds (which can happen if we generate multiple reports at once) we ge a socket timeout after exact 10 seconds:
So i assume this is the default timeout and would be great if we can set this in the config database:
2025-02-16 17:11:01,132 INFO [org.das.ser.ExMapper] (executor-thread-2853) REST exception: java.lang.RuntimeException: java.net.SocketTimeoutException: timeout
at com.dashjoin.jsonata.Jsonata$JFunction.call(Jsonata.java:2222)
at com.dashjoin.jsonata.Jsonata.applyInner(Jsonata.java:1742)
at com.dashjoin.jsonata.Jsonata.apply(Jsonata.java:1674)
at com.dashjoin.jsonata.Jsonata.evaluateFunction(Jsonata.java:1644)
at com.dashjoin.jsonata.Jsonata._evaluate(Jsonata.java:191)
at com.dashjoin.jsonata.Jsonata.evaluate(Jsonata.java:131)
at com.dashjoin.jsonata.Jsonata.evaluateBindExpression(Jsonata.java:1222)
at com.dashjoin.jsonata.Jsonata._evaluate(Jsonata.java:185)