Puppeteer browser page stuck on redirections
# crawlee-js
c
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
Copy code
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("...");
h
message has been deleted
l
Hi @Calypso Is there any reason why you are not using the crawlee which would make all of this for you?
c
I only knew about puppeteer xd
l
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