That worked thanks. It is now getting to 600000ms before timing out so I need to look at the template and see where I can optimize it.
Posts made by TantumLabs
-
RE: Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
-
Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
I have a very large PDF using chrome-pdf that renders around 750 pages and I am getting the error after 195,965ms.
Here is my relevant docker variables:
environment: - trustUserCode=true - reportTimeout=600000 - workers_numberOfWorkers=10 - blobStorage_provider=aws-s3-storage - extensions_awsS3Storage_accessKeyId=accessKey - extensions_awsS3Storage_secretAccessKey=secret - extensions_awsS3Storage_bucket=bucket - extensions_fs-store_persistence_provider=aws-s3 - extensions_fs-store-aws-s3-persistence_bucket=bucket - extensions_fs-store-aws-s3-persistence_accessKeyId=accessKey - extensions_fs-store-aws-s3-persistence_secretAccessKey=secret
Error in jsReport:
Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. ProtocolError: Page.printToPDF timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. at new Callback (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:62:35) at CallbackRegistry.create (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:108:26) at Connection._rawSend (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:224:26) at CDPSessionImpl.send (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:433:78) at CDPPage.createPDFStream (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js:738:88) at CDPPage.pdf (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js:771:37) at /app/node_modules/@jsreport/jsreport-chrome-pdf/lib/conversion.js:391:27 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /app/node_modules/@jsreport/jsreport-chrome-pdf/lib/conversion.js:432:22
-
RE: NumberOfPages displaying null in Meta
That worked perfectly! I had to change the last line to match the case of the meta parameter. I created a script file and imported that into the templates I needed it on.
-
RE: Versions 2.9 and 2.10 when using the ChromePdf recipe landscape is not working
It looks like it was bootstrap related. I compiled a version without the print imports and that fixed it. Sorry about that.
-
Versions 2.9 and 2.10 when using the ChromePdf recipe landscape is not working
As the title states in both version 2.9 and 2.10 when using the ChromePdf recipe landscape is no longer working. I have tried on both Windows and Linux (Ubuntu) and they both had the same result.
-
NumberOfPages displaying null in Meta
The pdf generates fine but the meta for report.Meta.NumberOfPages is returning null. Is there something else I have to do to get the number of pages once the file is generated?
var report = await pdfService.RenderAsync(new RenderRequest { Template = new jsreport.Types.Template { Recipe = Recipe.ChromePdf, Engine = Engine.Handlebars, Name = "Violation Letter" }, Data = data });