-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring HTTP proxy as described in our docs no longer works in Node@18 and @20 #1646
Comments
Thanks for the report! At this point, core enhancements won't be added to this library by the team. A PR would be reviewed though. Also, could this be fixed with just docs? Very suboptimal, but could be an option. Thoughts? |
As far as I can tell, the only thing we need to change in the code is the type that defines fetch options, so that it includes the new dispatcher property. Other than that, we need to update docs and explain how to use it. The code itself works just fine. |
Came across this problem on Node
This was giving us a After reverse engineering things and reading through various posts we arrived at nodejs/undici#1350 (comment) As we are
Thought this might help someone in the future. |
Hi there, |
Bug Report
Description
Since v18, Node ships with a native fetch client. This client requires a different way to specify an HTTP proxy than what we've been supporting in our SDKs so far.
To specify an HTTP proxy for Node's fetch, you need to use the following code (tested on Node v18.19 and v20.11):
What's noteworthy:
We should update our FetchOptions interface to support specifying dispatcher.
Console Errors: no
Steps to Reproduce
Expected behavior: web requests intercepted by the specified proxy
Actual behavior: web requests passed through without being intercepted
Additional Context
Usage Information
SDK Version - 3.06
The text was updated successfully, but these errors were encountered: