grafana/grafana-image-renderer

Puppeteer: Set protocolTimeout

AgnesToulet opened this issue · 1 comments

In "recent" version of Puppeteer, a new timeout had been added and ignore the one we can send to the image renderer. We should configure it either with the value configured in the image renderer settings (if possible) or with 0 (no timeout).

We are seeing strange performance problems generating PDFs. We have a generous global timeout set (10 minutes), but some of the panels are still failing randomly, and show an error in the produced PDF. The same panel may work fine on a subsequent attempt. There isn't any apparent patturn to the failures that we've been able to determine. This started in the latest version of Grafana Cloud at about the time of this issue. We are on currently on Grafana 10.3. Example:

image

Thank you for your work on the renderer and gofpdf.