-
-
Notifications
You must be signed in to change notification settings - Fork 935
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
tunnel compatability for proxying broken in Version 10 #1009
Comments
I have the same issue. Temporary solution that I have created for myself let https = require('https');
gotOptions.request = https.request;
gotOptions.hooks = {
beforeRequest: [
options => {
options.request.getHeader = (name) => options.headers[name] || null;;
}
]
}; |
Also have problems with this code got('https://v4.icanhazip.com/', {
agent: tunnel.httpsOverHttp({ proxy: { ... }),
timeout: 5000
}) Error:
|
Is there any ETA for the release of this fix? |
test several packages, this's the only work one and much faster, about 3 times against before. (v9.x with tunnel) |
@szmarczak For comparison purposes, I tried needle, it works well. besides, when I try to GET this url |
https-proxy-agent works fine for me |
Not work for me as described above, |
Describe the bug
Proxying requests via the
tunnel
module as reccomended in the readme fail using got 10.Actual behavior
An error is thrown:
I recognize that the error is thrown within
tunnel
code and notgot
, but as the README reccomends to use tunnel with example code provided, I think this behavior is worth opening an issue about.Expected behavior
No error is thrown, as occurs using got 9.6.0
Code to reproduce
Replace the proxy options with a working proxy (I have tested using both Charles proxy and live proxies)
Checklist
The text was updated successfully, but these errors were encountered: