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
HTTP/2 over unix domain sockets returns ERR_SSL_WRONG_VERSION_NUMBER
#2868
Comments
Currently we do not support H2C. |
I've been playing around with this recently, and I believe that is not an easy task given the little context we know when instantiating a plain text connection. There's no way to differentiate when we are communicating through My thought will be to make this mostly a proper |
I think something lower level would be better. IMHO a H2CPool would be low level and composable enough. |
Bug Description
I'm trying to send a request to a local server running HTTP/2 without TLS (H2C) over a unix domain socket. This is what my company uses for internal services.
However, when I try to fetch the results, I git an SSL error:
Reproducible By
I'm using
node
to start the local server:I can successfully query the local server via curl:
But it doesn't work when querying using undici:
Expected Behavior
The expected behavior is that when a dispatcher does not request a cert, the fetch is able to make a request to an HTTP/2 server over a unix domain socket.
Logs & Screenshots
N/A
Environment
MacOs 14
Additional context
It feels really weird that I can easily start an insecure HTTP2 server using node, but it's very hard (or impossible) to send requests to it.
The text was updated successfully, but these errors were encountered: