Skip to content
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

HTTPS proxy can cause confusing 'Error: write EPROTO 8669745856...' error #62

Open
BogdanCln opened this issue Jan 18, 2023 · 1 comment

Comments

@BogdanCln
Copy link

Hello and thanks for taking your time to read this!

The issue I'm facing is that sometimes the proxy responds with an error status code to the CONNECT request which is not handled.
Currently, global-agent considers that once a response for the CONNECT request is received, it is fine to start the TLS handshake. That will result in a confusing error if the proxy refuses the connection:
Error: write EPROTO 8669745856:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:.
Two common cases when this happens are wrong authentication and proxy access filter declining the request. In both cases, the proxy will respond with an error status code (>=400) to the CONNECT request.

I created a PR for this: #61

More details and replication guide are included there.

@NPhMKgbDNy1M
Copy link

I have the same problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants