-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
{:stream_error, :protocol_error, :"Stream reset by server."} #327
Comments
Please add |
|
@essen added. Thank you. Look forward to hearing back! EDIT: reformatted |
I though
I can replicate the issue in my local env using self signed certs. Same error message anyway, tracing looks the same. Various combinations of tls_ops render the same |
Oh that's Websocket? For Websocket over HTTP/2 you need to enable the CONNECT protocol in Cowboy, see: https://github.com/ninenines/gun/blob/master/test/ws_SUITE.erl#L47 You cannot use Websocket until the setting is set (see the test suite for how to wait for the right moment). Alternatively you can disable HTTP/2 in Gun if you don't need it. The problem occurs with TLS but not TCP because TLS uses ALPN to select the protocol and that defaults to HTTP/2. |
:gun_error
:{:stream_error, :protocol_error, :"Stream reset by server."}
Certs from GlobalSign
In Phoenix. The stream ref is created, but the somewhere before upgrade the above error presents itself. The request is never passed to
&Node.Socket.init/2
Non-tls connection work fine. Please advise...{:gun, "~> 2.0"}
{:plug_cowboy, "~> 2.5"}
server:
client:
The text was updated successfully, but these errors were encountered: