Timeout when rendering chart js using phantom-pdf



  • We are facing an issue while rendering Chart.js line chart with dynamic data passed from API. It goes into a Timeout issue when trying to render the chart.
    Also wait for printing trigger is enabled. And this was working before well but suddenly the report seem to throw this timeout issue.

    Dynamic Data trace:
    { message:
    'Error during rendering report: Timeout when executing in phantom',
    stack:
    'Error: Timeout when executing in phantom\n at Timeout._onTimeout (/home/ubuntu/report_server/node_modules/jsreport-phantom-pdf/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js:89:26)\n at ontimeout (timers.js:466:11)\n at Timer.unrefdHandle (timers.js:578:5)' }

    Below are the Stack trace for static data as well.
    Error occured - Error during rendering report: Timeout when executing in phantom
    Stak - Error: Timeout when executing in phantom
    at Timeout._onTimeout (/home/ubuntu/report_server/node_modules/jsreport-phantom-pdf/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js:89:26)
    at ontimeout (timers.js:466:11)
    at Timer.unrefdHandle (timers.js:578:5)

    Tried with a static data too but still not working. We are using version 1.9.1 enterprise license and phantom.js 1.9.8

    Help is appreciated.



  • Do you see some js errors when you run the template with debug button? Maybe there is an error in the js that prevents the jsreport print trigger to be invoked.

    Are you able to replicate the problem in playground? Thanks
    https://playground.jsreport.net



  • Just Increase the timeout time from you configuration file and restart your server.
    I also faced this issue, it worked for me :)

    Thanks!


Log in to reply
 

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