Request body larger than maxBodyLength limit



  • I am getting this:

    jsreport.Local.JsReportBinaryException: 'Error rendering report: rendering has finished with errors:
    A critical error occurred while trying to execute the render command (2).
     Error while executing request to remote server.
     Request body larger than maxBodyLength limit (1).
     caused by error (2):-> 
    stackError:    at onCriticalError (D:\snapshot\jsreport\node_modules\jsreport-cli\lib\commands\render.js:302:19)
    at D:\snapshot\jsreport\node_modules\jsreport-cli\lib\commands\render.js:201:16
    at processTicksAndRejections (internal/process/task_queues.js:97:5)caused by error (1):'
    

    Although i did set the limit to 100mb like this:

    services.AddJsReport(new LocalReporting()
                   .UseBinary(JsReportBinary.GetBinary())
                   .Configure(cfg =>
                   {
                       var expressConfig =  new ExpressConfiguration();
                       expressConfig.InputRequestLimit = "100mb";
                       cfg.Extensions.Express = expressConfig;
                       return cfg.AllowedLocalFilesAccess()
                               .BaseUrl(env.WebRootPath);
                   })
                   .KillRunningJsReportProcesses()
                   .AsUtility()
                   .Create());
    

    I created a github issue
    https://github.com/jsreport/jsreport-dotnet/issues/55


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.