You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Websocket connectivity works and I can connect using celocli or wscat to geth and query the API.
Current Behavior
What is the current behavior?
Current setup and documentation relays on websocket service to be served under /ws path. Based on the issue ethereum/go-ethereum#21441, geth websocket service now listen on / and does not answer requests under any other path, so requests to /ws does not work.
Potential solution
Based on the fix in upstream, we need to either update the documentation, setup, etc. to move the websocket endpoints to /, or having some path rewrite somewhere. We tested a path rewrite rule in GCP HTTP/s LB and this configuration works:
Additionally we should consider cherry-picking ethereum/go-ethereum#21646 as this PR fixes websocket connections through Kong.
The text was updated successfully, but these errors were encountered:
…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).
Expected Behavior
Websocket connectivity works and I can connect using celocli or wscat to geth and query the API.
Current Behavior
What is the current behavior?
Current setup and documentation relays on websocket service to be served under
/ws
path. Based on the issue ethereum/go-ethereum#21441, geth websocket service now listen on/
and does not answer requests under any other path, so requests to/ws
does not work.Potential solution
Based on the fix in upstream, we need to either update the documentation, setup, etc. to move the websocket endpoints to
![image](https://user-images.githubusercontent.com/5635989/133294701-b3cbe7bb-78aa-4ae0-b18c-75ca3d658d53.png)
/
, or having some path rewrite somewhere. We tested a path rewrite rule in GCP HTTP/s LB and this configuration works:Additionally we should consider cherry-picking ethereum/go-ethereum#21646 as this PR fixes websocket connections through Kong.
The text was updated successfully, but these errors were encountered: