-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
Web sockets seems to have moved from /ws to / on latest upgrade #21441
Comments
Websockets were always supposed to be on the root. Perhaps previously it didn't care about the path and answered on all of them and now someone fixed it so it only answers on root? |
Yeah I checked it out and previous version allowed any path (not just |
Closing this issue as the described behavior was unexpected and has now been fixed. |
…1698) ### Description Cherry-picking from go-ethereum [this PR](ethereum/go-ethereum#21646). The fix from the PR is needed for Kong and the GCP LB to be able to redirect the websocket properly. ### Tested Tested in baklava forno env with and without Kong as proxy: ``` ╰─ wscat -c wss://baklava-forno-k8s.celo-testnet.org/ws Connected (press CTRL+C to quit) > {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1} < {"jsonrpc":"2.0","id":1,"result":"0x768513"} ``` ``` ╰─ geth attach wss://baklava-forno-k8s.celo-testnet.org/ws Welcome to the Geth JavaScript console! instance: celo/v1.4.0-unstable/linux-amd64/go1.16.8 at block: 7767331 (Wed Sep 22 2021 10:01:28 GMT+0200 (CEST)) modules: eth:1.0 net:1.0 rpc:1.0 web3:1.0 To exit, press ctrl-d > ``` ### Related issues - Fixes #1683 ### Backwards compatibility [This celo-monorepo PR](celo-org/celo-monorepo#8100) needs to be merged/used to deploy new celo-blockchain versions to Forno due to [this issue](ethereum/go-ethereum#21441) (this endpoint change is already on master).
Hi there,
Please note that this is an issue tracker reserved for bug reports and feature requests.
For general questions please use discord or the Ethereum stack exchange at https://ethereum.stackexchange.com.
System information
Geth version:
OS & Version: Linux
Commit hash : n/a
Expected behaviour
To be able to connect to web sockets still to be
ws://host:port/ws
Actual behaviour
Web sockets now appear at:
ws://host:port
Steps to reproduce the behaviour
Upgrade a working geth on previous release version with command line:
geth --port 30304 --http --http.port=8545 --http.addr=0.0.0.0 --http.api=eth,net,web3,debug --http.corsdomain="*" --http.vhosts=examplecom --nodiscover --graphql --graphql.corsdomain="*" --graphql.vhosts=example.com --networkid 1234 --ws --ws.port=8546 --ws.addr=0.0.0.0 --ws.origins="*" -ws.api=eth,net,web3,debug --verbosity 3 --identity test-node
Backtrace
The text was updated successfully, but these errors were encountered: