local jsreport stuck at rendering.



  • Hi,

    My local jsreport stuck at rendering. I don't know why. here is the logs;

    2021-09-14T12:32:04.104Z - info: Starting rendering request 4 (user:xxxx)
    2021-09-14T12:32:04.106Z - info: Rendering template { name: <report-template-name>, recipe: chrome-pdf, engine: handlebars, preview: true }
    2021-09-14T12:32:04.107Z - debug: Adding sample data Sy5S19ncg
    2021-09-14T12:32:04.109Z - debug: Resources not defined for this template.
    2021-09-14T12:32:04.110Z - debug: Base url not specified, skipping its injection.
    2021-09-14T12:32:04.117Z - debug: Replaced assets ["bootstrap.min.css"]
    2021-09-14T12:32:04.118Z - debug: Rendering engine handlebars using http-server strategy
    2021-09-14T12:32:04.182Z - debug: Compiled template not found in the cache, compiling
    2021-09-14T12:32:04.185Z - debug: Executing recipe chrome-pdf
    2021-09-14T12:32:04.458Z - debug: Converting with chrome HeadlessChrome/79.0.3945.0 using dedicated-process strategy
    2021-09-14T12:32:04.594Z - debug: Page request: GET (document) file:///C:/Users/hg/AppData/Local/Temp/jsreport/autocleanup/c4087d6a-d2d5-4cd0-a087-17d475aa9cba-chrome-pdf.html
    2021-09-14T12:32:04.669Z - debug: Page request finished: GET (document) file:///C:/Users/hg/AppData/Local/Temp/jsreport/autocleanup/c4087d6a-d2d5-4cd0-a087-17d475aa9cba-chrome-pdf.html
    2021-09-14T12:32:04.672Z - debug: Page request: GET (script) file:///C:/Users/hg/AppData/Local/Temp/jsreport/autocleanup/helper.js
    2021-09-14T12:32:04.685Z - warn: Page request failed: GET (script) file:///C:/Users/hg/AppData/Local/Temp/jsreport/autocleanup/helper.js, failure: net::ERR_FILE_NOT_FOUND
    2021-09-14T12:32:04.686Z - debug: Failed to load resource: net::ERR_FILE_NOT_FOUND
    2021-09-14T12:32:04.777Z - debug: Running chrome with params {"printBackground":true,"marginTop":"1cm","marginRight":"1cm","marginBottom":"1cm","marginLeft":"1cm","margin":{"top":"1cm","right":"1cm","bottom":"1cm","left":"1cm"}}
    'taskkill' is not recognized as an internal or external command,
    operable program or batch file.

    What is the proplem? Any helps?



  • I think problem is chrome-pdf. I created a test template with no helper. And i can't still preview report here is the logs and template

    <html>
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    </head>
    <body>
    <p>test</p>
    </body>
    </html>
    2021-09-14T13:38:34.914Z - info: Starting rendering request 1 (user: xxx)
    2021-09-14T13:38:34.917Z - info: Rendering template { name: test, recipe: chrome-pdf, engine: handlebars, preview: true }
    2021-09-14T13:38:34.919Z - debug: Data item not defined for this template.
    2021-09-14T13:38:34.920Z - debug: Resources not defined for this template.
    2021-09-14T13:38:34.923Z - debug: Base url not specified, skipping its injection.
    2021-09-14T13:38:34.928Z - debug: Rendering engine handlebars using http-server strategy
    2021-09-14T13:38:35.061Z - debug: Compiled template not found in the cache, compiling
    2021-09-14T13:38:35.064Z - debug: Executing recipe chrome-pdf
    2021-09-14T13:38:35.308Z - debug: Converting with chrome HeadlessChrome/79.0.3945.0 using dedicated-process strategy
    2021-09-14T13:38:35.459Z - debug: Page request: GET (document) file:///C:/Users/hg/AppData/Local/Temp/jsreport/autocleanup/3edd7195-55fb-4a0c-84ba-d3bedd848de9-chrome-pdf.html
    2021-09-14T13:38:35.479Z - debug: Page request finished: GET (document) file:///C:/Users/hg/AppData/Local/Temp/jsreport/autocleanup/3edd7195-55fb-4a0c-84ba-d3bedd848de9-chrome-pdf.html
    2021-09-14T13:38:35.497Z - debug: Running chrome with params {"printBackground":true,"margin":{}}
    'taskkill' is not recognized as an internal or external command,
    operable program or batch file.


  • administrators

    hi @gundogduhasan this looks like a problem with chrome and windows, not sure why taskkill does not work for you, i tried to google some fixes but no luck, in one thread i read that the problem might be that the taskkill in not found on your windows PATH, maybe this can also help



  • Thanks for your help. system32 path is missing in my environment variables path. I added it and its working. Thanks again.


Log in to reply
 

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