Timeout Issue When Generating Large PDFs (On-Premise, Enterprise License)



  • Hello everyone,

    We are experiencing a timeout issue when trying to generate a multi-page document using jsreport. No matter what configuration we set, the process fails after 30 seconds with a timeout error.

    From the logs, it appears to be a timeout related to the template rendering. Here is a screenshot of the error message:
    0_1739368708833_upload-5d7d892f-4399-452d-9227-c424602a2f16

    0_1739368731429_upload-17123355-edb6-4b02-9078-83a6a9c73375

    0_1739368859319_upload-4122284c-6e75-48fc-aa84-d42c70e16148

    We are running an on-premise instance with an enterprise license using the following setup:

    • Image: jsreport/jsreport:4.0.0-full
    • Configuration:
    {
    	"trustUserCode": true,
    	"allowLocalFilesAccess": true,
    	"reportTimeout": 180000,
    	"enableRequestReportTimeout": false,
    	"store": {
    		"provider": "fs"
    	},
    	"extensions": {
    		"chrome-pdf": {
    			"timeout": 180000
    		},
    		"scripts": {
    			"timeout": 180000
    		},
    		"fs-store": {
    			"syncModifications": {
    				"updateStudio": true
    			}
    		}
    	},
    	"chrome": {
    		"timeout": 180000
    	},
    	"workers": {
    		"numberOfWorkers": 3
    	}
    }
    

    Despite setting the timeouts to 180 seconds, the process still fails at the 30-second mark.

    Has anyone encountered a similar issue? Could there be additional settings affecting the template execution timeout?

    Thanks in advance for any help!



  • It could be a problem with your client call. How do you make the API request? Don't you need to add a timeout config there?



  • Hi! Thanks for getting back to me!

    I've checked multiple times, and we're using Axios with the default timeout set to 0, so there’s no timeout configured on our end. However, it looks like reportTimeout doesn’t seem to affect chrome-pdf's timeout.

    Do you have any suggestions on how to fix this? I'd really appreciate any insights!



  • What if you run the same request in the browser/studio? Does that timeout after 30s as well?

    Don't you have on the way to jsreport some kind of proxy/load balancer/web server that could have the 30s timeout ?

    Can you try the same with the latest jsreport 4.7.0?


Log in to reply
 

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