Timeout in Docker (with Camoufox image)
Hello everyone,
I'm trying to create a scraper with Crawlee + Camoufox that I'll run in a Docker container.
To do this, I used the Apify image for Camoufox (https://github.com/apify/apify-actor-docker/tree/master/node-playwright-camoufox) and followed the same tutorial as this one: https://docs.apify.com/sdk/js/docs/guides/docker-images
But, for some unknown reason, every request timeout (even a request to google.com).
Do you have any idea why this is happening? I tried a simple fetch, which works, so it doesn't seem to be a network issue.
GitHub
apify-actor-docker/node-playwright-camoufox at master · apify/apif...
Base Docker images for Apify actors. Contribute to apify/apify-actor-docker development by creating an account on GitHub.
Running in Docker | SDK for JavaScript | Apify Documentation
Example Docker images to run your crawlers
6 Replies
Someone will reply to you shortly. In the meantime, this might help:
After some experimentation, it seems to be linked to the Rosetta emulation (I have a M1) with Firefox-based browsers (no problem with Chromium).
I tried it on a computer with amd64 architecture, no problem.
shouldn't be.
I've tested this on an M3 macbook without issues.
Oh ok, perhaps due to a lack of performance? Could you try navigating to https://www.browserscan.net/bot-detection in headful mode and tell me if the page displays correctly within the apify/actor-node-playwright-camoufox:22 docker image?
BrowserScan
BrowserScan - Robot Detection/WebDriver
Bot Test, WebDriver Test, Discord bots, Cloudflare Turnstile, Google reCAPTCHA, gives you a powerful tool to prevent online fraud
I'm not using Apify images.
I use node:slim images.
Thats might be why, as all Apify images are amd64 arch only and Node image have both amd64 and arm64 arch supported
Or is your node image also explicitly amd64 platform too? If not, its targeting your host arch, so no emulation