GitHub CDN Connection Timeout Fixes | Generated by AI

Home 2026.04

Question: Why does npx camoufox-js fetch fail with UND_ERR_CONNECT_TIMEOUT 185.199.109.133:443 after stopping proxy, and how to fix it?

Answer:

This error shows direct connection to GitHub CDN is blocked or unreachable:

ConnectTimeoutError: 185.199.109.133:443

That IP belongs to GitHub release CDN. So what happened:

This is very common on some networks.


What the error means

Node.js is trying:

https://github.com/.../camoufox...

It resolves to:

185.199.109.133

Then:

timeout: 10000ms

Meaning:


Fastest Fix (use proxy ONLY for this command)

Run:

proxychains4 -q npx camoufox-js fetch

But add dynamic_chain in proxychains config:

Edit:

/opt/homebrew/etc/proxychains.conf

Change:

strict_chain

to:

dynamic_chain

This avoids dead proxies blocking.


Better Fix (recommended)

Use HTTPS proxy just for this download:

HTTPS_PROXY=http://127.0.0.1:7890 npx camoufox-js fetch

or:

ALL_PROXY=socks5://127.0.0.1:7890 npx camoufox-js fetch

(depends on your local proxy port)

This is much faster than proxychains.


Best Fix (manual download — fastest)

Get the download URL:

DEBUG=camoufox* npx camoufox-js fetch

It prints:

Downloading from:
https://github.com/.../camoufox-macos.zip

Then download using your proxy tool:

If using clash:

curl -L -x http://127.0.0.1:7890 -o camoufox.zip <URL>

or socks:

curl --socks5 127.0.0.1:7890 -L -o camoufox.zip <URL>

Then extract:

mkdir -p ~/.cache/camoufox
unzip camoufox.zip -d ~/.cache/camoufox

Then:

npx camoufox-js fetch

It will detect already downloaded.


Why this happens

Your behavior proves:

mode result
proxychains slow but works
direct timeout
system proxy not configured

So only proper proxy env var works.


Clean Solution (one command)

Use:

ALL_PROXY=socks5://127.0.0.1:7890 npx camoufox-js fetch

This usually finishes in:

10–30 seconds

instead of:

14 hours

If you’re not sure your proxy port, run:

lsof -iTCP -sTCP:LISTEN | grep -E "7890|1080|8888"

or tell me:

I’ll give exact command.


Back Donate