Open tgrushka opened 6 months ago
Tried fetch() by itself, node-fetch, ... nothing seems to allow me to override the HTTPS_PROXY variable, because bun won't allow me to use a node-compatible fetch. This is a major blocker.
i get 407 status code too: #13245
What version of Bun is running?
1.0.30+1424a196f
What platform is your computer?
linux/amd64
What steps can reproduce the bug?
Exit REPL and start over, because subsequent calls crash bun REPL!!!
Exit REPL.
One more time...
Exit REPL.
As expected without
proxy: false
, but then:(Gee, we don't even have to restart node REPL.)
Go figure, bun is very, very weird (and frustrating 😠 when it comes to
fetch()
.Then I get other weird errors (HTTP 428 - Precondition Required) with bun's implementation of fetch when using my own proxy with self-signed certificate, but that's another issue.
What is the expected behavior?
I expect bun to not override
fetch()
and not override any client library such as axios that uses it. I expect it to behave the same way as it does in node. If it does not, I expect the ability to override bun's "optimized"??? implementation of fetch and revert to node's version of fetch for the entire environment if I want to, for which there seems to be no documentation.What do you see instead?
See above reproduction. In summary, bun is doing something internally to override fetch() API and is enforcing my HTTPS_PROXY environment variable, even when I strictly override it with
proxy: false
on the axios instance.Additional information
No response