-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[puppeteer-extra-plugin-block-resources] Error: Request is already handled! when using along side puppeteer-extra-plugin-adblocker #90
Comments
Hmm, damn - I actually went to great length to avoid that :-/ You have two options until I fix that (I'm busy the next days so the fix won't be as quick as usual): const PluginStealth = require("puppeteer-extra-plugin-stealth");
const pluginStealth = PluginStealth()
pluginStealth.enabledEvasions.delete('accept-language')
puppeteer.use(pluginStealth) Or use an older version ( |
Closing in favor of #91 |
I just released a hotfix to disable |
thank you for the quick response and fix! |
If i try to use:
The same thing happens to me, I use the latest version |
Same here as @kaiserdj says, using:
and
|
I am also facing this issue, if I disabled AdblockerPlugin, then the problem disappeared . |
I can confirm this is still an open issue. I'm using the latest Puppeteer (v5) and the latest versions of the puppeteer-extra, and all of the plugins. If I disable adblocker, the issue goes away. Enabling adblocker creates the issue. Is anyone working on a patch for this? This crashes the browser, so it should be considered a critical bug |
As far as i know, no one is working on it, so you can attempt to fix it if you want :) |
I consistently hit the same issue. The problem in my case was that I was calling The plugin only needs to be registered once. At least this solved my problem. |
@aconchillo interesting. Keep in mind that the imports are being cached, if you need fresh puppeteer-extra instances use |
@berstend thanks! is it safe to use the same puppeteer-extra instance with multiple browsers? That is. import puppeteer from 'puppeteer-extra';
// only once
puppeteer.use(StealthPlugin());
// can be called multiple times.
browser = await puppeteer.launch(...); |
@aconchillo Yep, using multiple browsers with the same instance should do fine. I've had this use-case in mind when I implemented the plugin framework:
|
Nice. Great to hear! This project is great btw! 🙌 |
@aconchillo Thanks! Soon it will get even better (#303) 😄 |
I can confirm that the issue still happens and is very confusing. Using both I think at least a disclaimer should be put on both plugins doc pages advising to not use them together. |
The issue is still present, have we found any workaround on how to handle requests. |
Running the code above generates the following errors (one error per request!)
The text was updated successfully, but these errors were encountered: