Edit report timeout in jsReport 2.4
-
Hello, i'm using an old version of jsReport (2.4). If i am right, the docs for this version are at this link https://github.com/jsreport/docs/tree/60faa60a8b355a705e4cc2d2ea4cac2706803454/docs
So, my problem is i apparently cannot edit the render timeout when i make requests to jsReport via API.
I tried editing templatingEngines.timeout in the configuration file and that works: if i change it to 3 ms, the rendering goes error and i find in the logs the correct error message.
But I am interested in setting the timeout in the body of the HTTP based API, which is something like this:
'template': {...},
'data': {...},
'options': { 'timeout': 3 }
In this way i never get an error of timeout rendering and i am wondering if i am missing something, as in 2.4 version there is no parameter to add in the configuration file such as "enableRequestReportTimeout=true" as reported in last version docs (https://jsreport.net/learn/api#timeout)Can you help me with this? thanks
-
I am afraid the per-request timeouts were introduced in jsreport 2.7.0
https://github.com/jsreport/jsreport/releases/tag/2.7.0
-
that's why! :) thanks