-
Notifications
You must be signed in to change notification settings - Fork 20.6k
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
Geth Websocket Connections Return 200 #21668
Comments
I realize this issue has been closed for a while, but I am seeing almost this exact problem again on version Attaching directly to port Replication: I'm running a Geth node with the default ports. The node has been functional for a few weeks and tested (on localhost).
Also attached are some screenshots of logs from debugging. The first is the expected From geth.service:
|
did u solve this question, i have the same issue. my geth version is 1.11.0-unstable. @BrockMcCullough |
System information
Geth version:
1.9.20
OS & Version: Alpine
Running both websocket and rpc on port
8545
, using theflag
Expected behaviour
When attempting to query the rpc endpoint over
https
at/
and port8545
, a correct response is served.When attempting to connect to the websocket over
wss
endpoint at/
and port8545
, while passing through the headers:a lasting websocket connection is made.
Actual behaviour
When attempting to query the rpc endpoint over
https
at/
and port8545
, a correct response is served.When attempting to connect to the websocket over
wss
endpoint at/
and port8545
, while passing through the headers:I'll get back a
200
response code instead, and no lasting connection made.The same behavior was encountered with a variety of tools:
My theory is that geth is not treating this incoming request as an websocket connection, and is not switching protocols properly.
Steps to reproduce the behaviour
v1.9.20
with websocket and rpc served at port8545
.wss://
, with a tool such asgeth attach
,wscat
orwebsocat
Additional Note
Wondering if anyone else has ran into this, and may have some additional insight. I am not sure if this is a bug, or an expected result given the way I'm trying to interact with my node.
My setup was working on geth
1.9.13
, however since then I know there's been a good deal of work done overhauling websockets. I'm wondering if there's any changes since then that could be causing this behavior, however I couldn't find any details in recent release notes.If this is a known issue and can be solved by altering my configuration, I would greatly appreciate the insight!
The text was updated successfully, but these errors were encountered: