title: Why puppeteer page.goto() hangs?
body: <p>I'm running <code>puppeteer</code> in an <code>alpine-chrome</code> container with sandboxing, everything is done exactly as the docs suggest. And I've created a whole bunch of different puppeteer-fueled servers.</p>
  <p>I'm launching Puppeteer without any arguments, except <code>headless: false</code>.</p>
  <p>Why is <code>await page.goto()</code> method so problematic? It keeps giving me all kinds of non-sensical problems.</p>
  <p>I'm always doing this:</p>
  <pre><code>await page.goto('https://my-url.com/something', {
    waitUntil: 'networkidle2',
    timeout: 0
  })
  </code></pre>
  <p>Right now it just randomly hangs. Nothing happens, code execution just stops there. All I see is that CPU utilization hits the roof and then down to slightly-elevated levels, comparing to the properly-ongoing execution. 90% of time the <code>goto</code> doesn't elevate CPU utilization at all. Same page, same server, hangs randomly within the same script execution.</p>
  <p>Why is this hapening? Do I have to put <code>setTimeout</code> and <code>try-catch</code> statements all over my code around each <code>page.goto()</code> method? It feels like I'm using <code>puppeteer</code> fundamentally incorrect, because this behaviour doesn't make sense.</p>
  <p>Sorry for vague question, I don't understand what kind of information would be helpful here.</p>