TypeError: fetch failed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- node.js
- Domain
- cli, networking
Research direction
Start at the CLI error-handling path that reports the failed fetch, then reproduce the package test with the reported command and a blocked or restricted network. Done means the failure produces a friendlier message and identifies the URLs or domains that could not be contacted, with coverage for the reported error case.
Written by the indexing model from the issue text.
Description
Hello, thank you for releasing this tool for free!
I followed the steps to install sfw and test for a malicious package from the blog post. I am seeing the below when trying to test any package. I am connected to a corporate VPN, so I assume something might be blocking the request, but maybe it would be good to have a friendlier error message and highlight what urls/domains could not be contacted so they can be whitelisted?
sfw npm install lodahs
Protected by Socket Firewall
⠴Socket Firewall encountered an unexpected error: TypeError: fetch failed
at node:internal/deps/undici/undici:15422:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /Users/runner/work/firewall/firewall/dist/sfw-free.js:25:62842
at async Promise.all (index 0)
at async ZC (/Users/runner/work/firewall/firewall/dist/sfw-free.js:27:75)
at async Ev (/Users/runner/work/firewall/firewall/dist/sfw-free.js:43:46219)
at async X2 (/Users/runner/work/firewall/firewall/dist/sfw-free.js:43:47011)
at async jP (/Users/runner/work/firewall/firewall/dist/sfw-free.js:68:1055)
at async Server.GP (/Users/runner/work/firewall/firewall/dist/sfw-free.js:77:970)
⠧
sfw -v
Socket Firewall Free, version 0.12.18
- Dominant language
- No language data
- Stars
- 271
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SocketDev/sfw-free
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in SocketDev/sfw-free
Similar issues
-
manually bump balena-preload to ^19.0.6Possibly taken @shaunmulligan claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
balena-io/balena-cli#3200 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ranxianglei/billion-context#7858 ·
Maintainers usually reply within 1 day
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainers usually reply within 1 day