Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron-pdf issue in JSReport #20

Closed
virajitha-sarma opened this issue Apr 26, 2020 · 2 comments
Closed

Electron-pdf issue in JSReport #20

virajitha-sarma opened this issue Apr 26, 2020 · 2 comments

Comments

@virajitha-sarma
Copy link

Hi,
I am runnning jsreport in windows 10 and installed electron-pdf plugins in this way:
npm install jsreport-electron-pdf --save
npm install electron --save

I have attached jsreport.config.json and package,json configuration files

jsreport.config.json.txt
package.json.txt

I am trying to generate pdf using electron-pdf engine using the reports api:
http://localhost:5488/reports/api
{
"template": {
"content" : "Hello world {{name}}",
"recipe": "electron-pdf",
"engine": "handlebars",
"chrome": {
"landscape": true
}
},
"data" : { "name": "JSreports PDF"},
}

Getting this error during the processing of this request
2020-04-24T07:18:46.203Z - error: Error when processing render request 1 Worker Timeout, the worker process does not respond after 359127 ms Error: Worker Timeout, the worker process does not respond after 359127 ms
at Timeout._onTimeout (C:\jsreports\jsreportapp\node_modules\electron-workers\lib\ElectronManager.js:377:21)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)

Please help me with this issue

@virajitha-sarma
Copy link
Author

Also attached electron logs
electronlogs.txt

@bjrmatos
Copy link
Owner

the problem was explained here https://forum.jsreport.net/topic/1559/electron-pdf-issue-in-jsreport

TL;DR: an unsupported electron version was used

@bjrmatos bjrmatos closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants