Apify and Crawlee Official Forum

Updated 3 months ago

Puppeteer browser page stuck on redirections

when i use puppeteer & fingerprint injector with generator, some redirects make puppeteer on page firefox/chromium stuck
after these redirections the page stops logging my interceptors (they just write the url), the page stops responding to the resize

if I create a new page manually in this browser and follow the link with redirections, it's fine
without injector and generator everything works fine too

I'm not sure I can provide those links for some reason, but the problem is clearly related to the fingerprint injector
the main link has pointers to other links
Plain Text
browser = await puppeteer
    .launch({
        browser: "firefox",
        headless: false,
        devtools: true,
        args: ['--disable-web-security', '--allow-running-insecure-content'],
    });

const fingerprintGenerator = new FingerprintGenerator();
const fingerprint = fingerprintGenerator.getFingerprint();
const injector = new FingerprintInjector();

let page = await browser.newPage();
await injector.attachFingerprintToPuppeteer(page, fingerprint);
await page.goto("...");
C
L
4 comments
Hi @Calypso
Is there any reason why you are not using the crawlee which would make all of this for you?
I only knew about puppeteer xd
In that case I really recommend looking into crawlee
https://crawlee.dev/docs/quick-start
It will handle bunch of stuff for you.

If you already know puppeteer you can use puppeteer crawler
https://docs.apify.com/sdk/js/docs/examples/puppeteer-crawler
Add a reply
Sign up and join the conversation on Discord