Hi Jan,
Thanks for your pointers. I installed jsReport without docker, used docx recipe from git as you mentioned and set the memory size as 8GB while starting the JsReport.
Below is what I tried on local JsReport server:
- Increase memory size to 8GB and could render 100 and 200 page doc successfully.
- I tried 300, and it gave error as “Error: Request body larger than maxBodyLength limit”. This was coming from follow-redirects module and I changed the code to set maxBodyLength as 3GB.
- Tried 300 page request and it worked successfully.
- Fired 400 page request this time and got below logs in jsReport
2019-11-29T13:18:48.668Z - debug: Executing recipe html
2019-11-29T13:18:48.765Z - debug: Skipping storing report.
2019-11-29T13:18:48.777Z - info: Rendering request 2 finished in 18955 ms
2019-11-29T13:21:52.063Z - error: unable to load planned schedules Error: Timeou
t during waiting for file system, try it again later.
at Object.rejectItemsWithTimeout (c:\jsreportapp\node_modules\jsreport-fs-st
ore\lib\queue.js:53:23)
at Timeout._onTimeout (c:\jsreportapp\node_modules\jsreport-fs-store\lib\pro
vider.js:346:73)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
2019-11-29T13:21:53.706Z - error: Error while trying to flush studio logs: Timeo
ut during waiting for file system, try it again later. - Error: Timeout during w
aiting for file system, try it again later.
at Object.rejectItemsWithTimeout (c:\jsreportapp\node_modules\jsreport-fs-st
ore\lib\queue.js:53:23)
at Timeout._onTimeout (c:\jsreportapp\node_modules\jsreport-fs-store\lib\pro
vider.js:346:73)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
2019-11-29T13:21:56.056Z - debug: Successfully zipped now.
2019-11-29T13:21:56.566Z - error: Error when processing render request Request f
ailed with status code 413 Error: Request failed with status code 413
at createError (c:\jsreportapp\node_modules\axios\lib\core\createError.js:16
:15)
at settle (c:\jsreportapp\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (c:\jsreportapp\node_modules\axios\lib\ad
apters\http.js:237:11)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1183:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2019-11-29T13:21:56.607Z - error: Error during processing request at http://localhost:5488/api/report/HCFA
Looking at jsreport logs, it seems that it has generated document internally from green line marked above, but while sending this doc content to playground it fails and give HTTP error 413 which is related to large payload in response.
Appreciate your help in this.
Thanks,
Vishal