You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run the CLI it seems that it doesn't use the chrome default port. Explicitly set it to your chrome remote debugging port (Default 9222).
varLowDB=require('./src/db/lowdb.js')varhtmlPdf=require('html-pdf-chrome')module.exports={api: {port: 3000,token: 'api-token'},db: LowDB({lowDbOptions: {},path: 'pdf-storage/db/db'}),storagePath: "pdf-storage",webhook: {url: 'http://localhost:3000/webhooks/pdf'},//include this sectiongenerator: {// Triggers that specify when the PDF should be generatedcompletionTrigger: newhtmlPdf.CompletionTrigger.Timer(1000),// waits for 1 sec// The port to listen for Chrome (default: 9222)port: 9222//this will be your default chrome remote debugging port}}
When i am trying to generate pdf using CLI, i am getting the following log.
Anyone please help me to fix this.
The text was updated successfully, but these errors were encountered: