question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blob URLs broken on Chrome 71 in headless mode

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 1.9.0
  • Platform / OS version: Ubuntu x64
  • Node.js version: v10.12.0
  • Chrome version: 71.0.3578.20 (beta)

What steps will reproduce the problem?

The smallest example I was able to make:

    await page.evaluate(() => {
      const url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='

      return window.fetch(url)
        .then(res => res.blob())
        .then(blob => URL.createObjectURL(blob))
        .then(url => window.fetch(url)) // crashes here
        .then(res => res.blob())
    })

What is the expected result? On Chrome 70 or Chrome 71 headfull it works fine

What happens instead? On Chrome 71 in headless mode I get: Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:23
  • Comments:30 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
aslushnikovcommented, Nov 7, 2018

This is a regression in our network stack in headless; filed upstream - https://crbug.com/902918

Thanks for reporting this!

3reactions
elbartostrikesagaincommented, Dec 27, 2018

I am also having problems with this - No problems after updating to Chrome 72 beta though

Read more comments on GitHub >

github_iconTop Results From Across the Web

902918 - Regression: blob URLs do not work in Headless
It's impossible to fetch blob URL in headless. ... Description was changed. ... Any workaround on this? ... Just tried and it works...
Read more >
Unable to locate elements on webpage with headless chrome
I have a script that's accessing printers, and my code works totally fine when chrome is run normally, but when ...
Read more >
Chrome Enterprise and Education release notes
The ChromeOS rollback feature enables managed devices to download and run an earlier version of ChromeOS than the one currently installed.
Read more >
Getting Started with Headless Chrome - Chrome Developers
The easiest way to get started with headless mode is to open the Chrome binary from the ... https://www.chromestatus.com # URL to open....
Read more >
Chrome 72+ seems to no longer accept --proxy-pac-url
It seems that the 'Network Service' option has been removed from chrome://flags (see the code commit). You can still run Chrome with --disable- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found