-
Notifications
You must be signed in to change notification settings - Fork 671
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
Socket hang up when using HTTPSAgent #815
Comments
The error I posted above is from node v10.15.1
I couldn't find where the error was coming from outside of these internal node errors. If anyone knows a way I can do some further investigating. |
I had a dig into the server logs as I thought it could be that which is disconnecting as the error code is
|
@mscdex have you any idea what could be causing this or know of somewhere I can look? I can try put a PR in for a fix if its a bug but I'm not sure where to start looking. |
I don't know offhand. Is it happening with all servers or just this one particular server? |
I'll give it a try against a few servers with different distros and see whats happening. I assume you are talking about the SSH target? |
Yes. |
I have tried the following where the httpsAgent fails but the httpAgent is fine: distro:
distro:
|
I've done a lot of digging for this and I think i've figured out whats going on. The stream decorator is fine for http as there's no TLS encryption, however it looks like the |
Decided to implement a work around. Per @tom-drake's pr (thank you!). You can add the following code to you project and import it, rather then using ssh2.HttpAgent. Requiring this code and calling new code.HttpsAgent(config) returns a working httpsAgent that will work with axios.
|
This should be resolved now with the |
Hi, I'm currently trying to use the https agent to automatically tunnel my requests over an ssh tunnel via some external host. For some reason the socket is terminating but only for the HTTPSAgent. I make the same call but with the HTTPAgent and this is successful.
The error I see is
I'm not sure if I'm missing something here with my config if the https agent needs anything extra. Any help would be appreciated. Thanks
The text was updated successfully, but these errors were encountered: