Comments (2)
Is this still an issue?
If so, could you please share:
- html-pdf-chrome version
- Linux distro and version
- pm2 version
- Node.js version
- Chrome version
from html-pdf-chrome.
I have set a specific IP address for the host
, but it defaults to 127.0.0.1
To resolve this issue:
- Set the
useHostName
totrue
.
After upgrading Chrome to version 114
, I encountered an error: Using unsafe HTTP verb GET to invoke /json/new. This action supports only the PUT verb.
. To rectify this:
- Use
chrome-remote-interface@^0.32.0
- Ensure the
resolutions
are properly configured in yourpackage.json
.
const options: CreateOptions & {
useHostName: boolean
} = {
host,
port,
printOptions: {
...request,
},
useHostName: true
};
console.log(
`Generate pdf through html-pdf-chrome with options ${JSON.stringify(
options,
null,
2
)}`
);
const pdf = await htmlPdf.create(html, options);
return pdf.toBuffer();
"resolutions": {
"chrome-remote-interface": "^0.32.0"
},
Fixing Chrome DevTools warning "Using unsafe HTTP verb" and
Export of Jaspersoft Graphical Reports fails post upgrade of Google Chrome
hope this can help you
- Node: v16.19.1
- html-pdf-chrome: ^0.8.4
- chrome-headless: 114.0.5735.106
from html-pdf-chrome.
Related Issues (20)
- 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
- Timeout problem w/ external chrome browser
- The CHROME_PATH environment variable must be set to a Chrome/Chromium executable no older than Chrome stable. HOT 7
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.