Comments (7)
Ditto. It works a few times in a row, and then out of the blue this error appears.
If I restart google-chrome it works again.
I get the bug both on Mac and on Ubuntu.
from html-pdf-chrome.
Possibly related to this issue (using chrome-remote-interface
wrong?):
cyrus-and/chrome-remote-interface#136
from html-pdf-chrome.
I've seen this issue often enough during the automated tests on the CI servers. My plan was to try and expose the Chrome logs to see if anything wonky was going on there. As far as I know, we're using chrome-remote-interface
correctly. We always make sure to close any connection to Chrome when finished. (https://github.com/westy92/html-pdf-chrome/blob/master/src/index.ts#L85)
As of right now, each PDF generation opens up a connection with Chrome and closes it when finished, which does not allow for parallelization. I'm hoping to revamp the API in v1 so that we open up one persistent connection with Chrome and we can reuse to allow parallelization. (#14)
from html-pdf-chrome.
@westy92 Actually that error pops up when I tried the recommended approach from the README.md of keeping chrome always running.
I just tried to use the built in chrome-launcher mechanism and it seems to "solve" the issue (no more error) while adding some overhead.
Obviously it isn't a solution because it adds unnecessary overhead.
from html-pdf-chrome.
I think this happen when we try to generate 2 pdf on the same instance with no delay between call.
from html-pdf-chrome.
Could you please verify this is still an issue with the newly-published v0.4.1?
@GautierT @israelidanny @ndaiya
from html-pdf-chrome.
Closing due to inactivity and inability to reproduce since v0.4.1. Please add more information if you are able to produce the issue again! Thank you.
from html-pdf-chrome.
Related Issues (20)
- Migrate from tslint to typescript-eslint
- Promises intermittently not resolved HOT 1
- CSS conic-gradient issue HOT 2
- Error: Cannot find module '/node_modules/html-pdf-chrome/dist/src/index.js'. Please verify that the package.json has a valid "main" entry HOT 2
- Log Handler HOT 1
- PDF with searchable text HOT 2
- Allow Chrome instance to launch on first run and persist for future runs HOT 5
- Editable form field creation HOT 1
- HtmlPdf.create() connection lost HOT 5
- Node.js 17 connect ECONNREFUSED ::1:49497 HOT 1
- Error: Cannot find module "html-pdf-chrome" HOT 3
- Module parse failed: /Users/pro/End/trunk/app/node_modules/html-pdf-chrome/dist/index.js HOT 2
- Page generate fails due to 'using unsafe HTTP verb GET' for new tab HOT 1
- setting up pm2 HOT 4
- Change return type of toStream() to Readable HOT 3
- Fonts are not working Azure DevOps HOT 2
- Consider cli support
- run with javascript and got CDP error HOT 3
- issue while deployed in pm2 linux HOT 2
- Timeout problem w/ external chrome browser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-pdf-chrome.