Skip to content
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

v1.0.2 Websocket subscriptions stop responding #812

Closed
CRossel87a opened this issue Jan 18, 2023 · 4 comments
Closed

v1.0.2 Websocket subscriptions stop responding #812

CRossel87a opened this issue Jan 18, 2023 · 4 comments

Comments

@CRossel87a
Copy link

Subscriptions of all kinds across websockets are confirming subscription, but not responding with data
image

Code to re-produce:
wscat -c ws://127.0.0.1:8546
{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}

Regular RPC calls are working:
image

@soltrac
Copy link

soltrac commented Jan 18, 2023

Confirmed

@yihuang
Copy link
Collaborator

yihuang commented Jan 18, 2023

I don't reproduce the issue though:

* websocat ws://127.0.0.1:26652
{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}
{"jsonrpc":"2.0","result":"0xbfb3c616f260e314d3b19541aa83fd1f","id":1}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0xbfb3c616f260e314d3b19541aa83fd1f","result":{"parentHash":"0x92e0362999e20aeda8b9c5ff74af8dd98e4c063c0f13e6a7b7df511269b27cf5","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x53077cf4e64a9d5b829ccc67da2961636c35344f","stateRoot":"0x28d4628dce8cdf7d67177698dc0bf2587c84ebff85cc2c7b372106320d1885f6","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","number":"0xce","gasLimit":"0x0","gasUsed":"0x0","timestamp":"0x63c822c8","extraData":"0x","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0x3b9aca00","hash":"0x2198ecbdd0f28b3324b461a99a9cda13249a9a0b4a3d53de32904617d49621af"}}}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0xbfb3c616f260e314d3b19541aa83fd1f","result":{"parentHash":"0x95c9f1a913f2ec96ab711812b014625f3f57e8eddddc50634e58ff761510d4d5","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x0c72e5b1461b679628a0e3f5bf1afe4c6a3842a7","stateRoot":"0x37162ae3acbf64b22f203fbe5b1730b140e48c828aaede3f272fec5570015737","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","number":"0xcf","gasLimit":"0x0","gasUsed":"0x0","timestamp":"0x63c822c9","extraData":"0x","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0x3b9aca00","hash":"0x53c524fb25e88f610d275ba7366e445b8c704ab1d841da4b204b6d27e9af536f"}}}

And this feature is tested in our integration test, which also runs ok.

@soltrac
Copy link

soltrac commented Jan 18, 2023

I receive the first result saying is ok, but not suscriptions. Just updated my node to 1.0.2

Edit: Reset and working ok, it seems that if just updated to 1.0.2 without a restart first, it is not working...something like that must be.

@jingxuan98
Copy link

A few days later... seems i got the same issue, until i restart my node then its working again

I don't get this issue when i started my node which is like 1 week before back then

Submitted the issue here
#886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants