title: Firebase puppeteer PDF function times out due to Chrome revision
body: <p>I have a Firebase function to create a PDF file. Lately, it times out due to a &quot;Chrome revision&quot;? Neither do I understand the error message, nor do I understand what is wrong. The function works, when I deploy it locally under MacOS.</p>
  <pre><code>TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r818858 is guaranteed to work.
      at Timeout.onTimeout (/workspace/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:204:20)
      at listOnTimeout (internal/timers.js:549:17)
      at processTimers (internal/timers.js:492:7) 
  </code></pre>
  <p>The function:</p>
  <pre><code>const puppeteer = require('puppeteer');
  const createPDF = async (html, outputPath) =&gt; {
  
      let pdf;
  
      try {
          const browser = await puppeteer.launch({
              args: ['--no-sandbox']
          });
          const page = await browser.newPage();
  
          await page.emulateMediaType('screen');
  
          await page.setContent(html, {
              waitUntil: 'networkidle0'
          });
  
          pdf = await page.pdf({
             // path: outputPath,
              format: 'A4',
              printBackground: true,
              margin: {
                  top: &quot;50px&quot;,
                  bottom: &quot;50px&quot;
              }
          });
  
          await browser.close();
  
      } catch (e) {
          console.error(e);
      }
  
      return pdf;
  };
  </code></pre>