You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs when using the HttpsProxyAgent library. When axios request is sent with proxy, bunjs ignores the proxy information and sends the request with the computer ip address. But Nodejs sends it with proxy information.
You can use any proxy for testing. The code was executed unchanged.
The expected behavior is that bun sends the request with a proxy like Node.js.
What do you see instead?
Bun HttpsProxyAgent library ignores proxy information. Axios' native proxy support also doesn't send username and password information. The same code works fine with Node.js but Bunjs doesn't use proxy.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.15+b23ba1fe1
What platform is your computer?
Linux 6.5.0-35-generic x86_64 x86_64
What steps can reproduce the bug?
The error occurs when using the HttpsProxyAgent library. When axios request is sent with proxy, bunjs ignores the proxy information and sends the request with the computer ip address. But Nodejs sends it with proxy information.
You can use any proxy for testing. The code was executed unchanged.
Code:
Node.js Result
Bun Result
If we use axios' local proxy support instead, it doesn't pass auth and returns a 407 error.
Code:
Node.js Result:
Bun Result:
What is the expected behavior?
The expected behavior is that bun sends the request with a proxy like Node.js.
What do you see instead?
Bun HttpsProxyAgent library ignores proxy information. Axios' native proxy support also doesn't send username and password information. The same code works fine with Node.js but Bunjs doesn't use proxy.
Additional information
No response
The text was updated successfully, but these errors were encountered: