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.

ERR_BLOCKED_BY_CLIENT appears when using version 1.13

See original GitHub issue
  • Puppeteer version: 1.13.0
  • Platform / OS version: Windows 10
  • Node.js version: 10.15.2
  • Chrome version: 72.0.3626.121

When I connect to the chrome instance using the 1.13 version, the ERR_BLOCKED_BY_CLIENT error message appears when using request.continue({ url: xxxx }). When I roll back puppeteer 1.12.2, the problem no longer occurs.

Also includes an additional question, Chrome has let the tips for automatic test software control disappear.

These problems occur when I connect to a local chrome instance using puppeteer.connect.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mycrlcommented, Mar 7, 2019

@aslushnikov Sorry, I can’t reproduce this question.

Today I tried to create a script and then reproduce the problem, but I found that the problem no longer appeared. I tried to upgrade yesterday’s wrong project to 1.13.0. Again, I found that this problem did not happen. God proved that I had this problem yesterday.

My test script:

const puppeteer = require("puppeteer")
const childProcess = require("child_process")
const axios = require("axios")
const util = require("util")

const DOWN_PROXY = /http:\/\/download.redis.io\/(.*).tar.gz/

const CHROME_PATH = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
const CHROME_HOST = "localhost"
const CHROME_PORT = 9222
const CHROME_WIDTH = 1920
const CHROME_HEIGHT = 1080

void (async function () {
  let debuggers = `--remote-debugging-port=${CHROME_PORT}`
  let chrome = childProcess.spawn(CHROME_PATH, [ debuggers ])
  let template = "http://%s:%s/json/version"
  let LocalPath = util.format(template, CHROME_HOST, CHROME_PORT)
  let { data } = await axios.get(LocalPath)
  let WSPath = data.webSocketDebuggerUrl
  
  let handle = await puppeteer.connect({
    defaultViewport: { width: CHROME_WIDTH, height: CHROME_HEIGHT },
    browserWSEndpoint: WSPath,
    executablePath: LocalPath
  })
  
  let context = await handle.newPage()
  
  void await context.setRequestInterception(true)
  context.on("request", req => {
    console.log("==============>>", req.url())
    DOWN_PROXY.test(req.url()) ? req.continue({
      url: "http://download.redis.io/releases/redis-5.0.3.tar.gz"
    }) : req.continue()
  })
  
  void await context.goto("https://redis.io", {
    timeout: 120000
  })
  
  process.on("SIGINT", _ => {
    chrome.kill()
    process.exit()
  })
})()

Let me recall, I installed the windows10 system yesterday, then installed chrome, logged into the Google account, pulled out the project from github, and then installed the dependencies through npm i, including puppeter, I did not lock the version, so the installation version is 1.13 .0, when I tried to continue working, I found that there was a problem with the rewrite request. I am trying to solve the problem. I first discovered the version number upgrade issue. I tried to roll back to 1.12.2 and then restart the project for testing. The problem no longer occurs. When I returned to 1.13.0, the problem reappeared. I tried to install the latest Chrome instance and then started it in the same way. The same problem reappears. I am trying to use ppupeteer.launch to launch the built-in chrome instance. No problem, it makes me confused.

During this process, I restarted the computer and updated the Windows system. When I try to reproduce it again today, the problem no longer appears.

Sorry, this may be a problem that doesn’t exist or is difficult to trigger. I am sorry for delaying your time.

0reactions
aslushnikovcommented, Mar 7, 2019

@xivistudios ok, so when and where does the ERR_BLOCKED_BY_CLIENT appear? Can you give me a small script that I can run locally to reproduce this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERR_BLOCKED_BY_CLIENT appears when using version 1.13
When I connect to the chrome instance using the 1.13 version, the ERR_BLOCKED_BY_CLIENT error message appears when using request.continue({ url: ...
Read more >
How to Solve ERR_BLOCKED_BY_CLIENT - KeyCDN Support
This error is commonly caused due to one of the extensions installed within Chrome. Most likely you will see this error appear if...
Read more >
4 Ways to Fix the “Failed to Load Resource: net - Kinsta
Learn how to fix the "Failed to Load Resource: net::ERR_BLOCKED_BY_CLIENT" error. We'll show you 4 different methods to fix this error.
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