Maximum Call Stack Size Exceeded for Text Recipe
-
Good afternoon.
I have implemented a very simple report using the text recipe that closely mirrors the example here to create a simple csv file. It works fine with a small set of data, however I start to see the following error with large data sets.
Error when processing render request 1 (because) maximum call stack size exceeded RangeError: Maximum call stack size exceeded at formatPatch (/opt/jsreport/node_modules/@jsreport/jsreport-core/lib/worker/render/diff.js:20:14) at createPatch (/opt/jsreport/node_modules/@jsreport/jsreport-core/lib/worker/render/diff.js:130:10) at Profiler.emit (/opt/jsreport/node_modules/@jsreport/jsreport-core/lib/worker/render/profiler.js:98:24) at invokeRender (/opt/jsreport/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:95:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async WorkerReporter._render (/opt/jsreport/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:148:7) at async /opt/jsreport/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:227:24 at async processAndResponse (/opt/jsreport/node_modules/@jsreport/advanced-workers/lib/workerHandler.js:41:17)
When I try to test this via the jsReport Studio and not do it via the API I get the following message when saving the sample data.
Input request reached limit of 209715200 byte(s), current size: 229242459 byte(s). The limit can be increased using config extensions.express.inputRequestLimit=50mb. request entity too large
Any idea why this may be happening?
-
You are likely running the request with full profiling mode. To avoid the error, run in normal profiling mode or try to decrease the profiler diff sizes using the following config.
"profiler": { "maxDiffSize": "10mb" }
-
Hello,
I increased the
extensions.express.inputRequestLimit
setting to 500MB and made the profile change"profiler": { "maxDiffSize": "10mb" }
you suggested. I am now able to make API requests for this report with large amounts of data without any errors.Thanks!