Open medz opened 1 year ago
also happens on axios!
when i trying to use SOCKS5 proxy with native bun fetch, I get this error:
The socket connection was closed unexpectedly. For more information, pass
verbose: truein the second argument to fetch()
looks like node-fetch and axios won't be able to help me either...
any solutions guys?
This broke Appwrite :-(
https://github.com/oven-sh/bun/issues/3386 https://github.com/oven-sh/bun/issues/12320
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
node-fetch
andsocks-proxy-agent
node-fetch
request:The socks agent can be simply created by yourself. By monitoring the data flow, it is found that the agent is configured but not used!
What is the expected behavior?
The request is sent correctly through the agent
What do you see instead?
The request did not go through the socks agent, but was requested directly through the local network.
Additional information
Use agent: