Report rendering Error Timeout
-
While i try to rendering the xlsx report i am getting this error.
{"message":"Error during rendering report: Timeout error during executing script","stack":"Error: Timeout error during executing script\n at Timeout._onTimeout (/home/ubuntu/report_server/node_modules/script-manager/lib/manager-processes.js:24:8)\n at ontimeout (timers.js:466:11)\n at Timer.unrefdHandle (timers.js:578:5)"}
@jan_blaha pls solve my issue
-
You seems to use a custom script which is timing out.
-
in my node script i am sending data to jsreport api.after sending to api this is happening.
-
I have another error also.
{"message":"request entity too large","stack":"Error: request entity too large\n at readStream (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/raw-body/index.js:196:17)\n at getRawBody (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/raw-body/index.js:106:12)\n at read (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/body-parser/lib/read.js:76:3)\n at jsonParser (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/body-parser/lib/types/json.js:127:5)\n at Layer.handle [as handle_request] (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:317:13)\n at /home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:335:12)\n at next (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:275:10)\n at urlencodedParser (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/body-parser/lib/types/urlencoded.js:100:7)\n at Layer.handle [as handle_request] (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:317:13)\n at /home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:335:12)\n at next (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:275:10)\n at cookieParser (/home/ubuntu/report_server/node_modules/cookie-parser/index.js:56:14)\n at Layer.handle [as handle_request] (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:317:13)\n at /home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:335:12)\n at next (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:275:10)\n at expressInit (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/middleware/init.js:40:5)\n at Layer.handle [as handle_request] (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:317:13)\n at /home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:335:12)\n at next (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:275:10)\n at query (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/middleware/query.js:44:5)\n at Layer.handle [as handle_request] (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:317:13)\n at /home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:335:12)\n at next (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:275:10)\n at Function.handle (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/router/index.js:174:3)\n at Function.handle (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/application.js:174:10)\n at Server.app (/home/ubuntu/report_server/node_modules/jsreport-express/node_modules/express/lib/express.js:38:9)\n at Server.<anonymous> (/home/ubuntu/report_server/node_modules/engine.io/lib/server.js:435:22)\n at Server.<anonymous> (/home/ubuntu/report_server/node_modules/socket.io/lib/index.js:275:16)\n at Server.emit (events.js:180:13)\n at Server.emit (domain.js:421:20)\n at parserOnIncoming (_http_server.js:642:12)\n at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17)"}
-
This means you send too much data to the server. You need to increase the default limit
https://jsreport.net/learn/configuration
extensions.express.inputRequestLimit (string) - optional limit for incoming request size, default is 2mb
-
"httpPort": 5488,
"extensions.express.inputRequestLimit":"50Mb",
"httpsPort": null,Is this correct