Timeout in Docker (with Camoufox image)
# crawlee-js
m
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.
h
Someone will reply to you shortly. In the meantime, this might help:
a
message has been deleted
m
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.
n
shouldn't be. I've tested this on an M3 macbook without issues.
m
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?
n
I'm not using Apify images. I use node:slim images.
m
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