Skip to content

TypeError: fetch failed #9

@tomjackman

Description

@tomjackman

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions