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

eth_subscribe newHeads not returning data #3093

Closed
fadeev opened this issue Nov 5, 2024 · 5 comments
Closed

eth_subscribe newHeads not returning data #3093

fadeev opened this issue Nov 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@fadeev
Copy link
Member

fadeev commented Nov 5, 2024

Trying new heads again, and it's returning the subscription, but not data.

websocat wss://zetachain-evm.blockpi.network/v1/ws/1295216a144e08ce8f0d0d452d16fe73cf1ee71e   
{ "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"] }
{"id":1,"jsonrpc":"2.0","result":"0xdf4b24d9cee37d3f3392ee8d02cea61c"}
wscat -c ~ wscat -c wss://zetachain-evm.blockpi.network/v1/ws/1295216a144e08ce8f0d0d452d16fe73cf1ee71e
Connected (press CTRL+C to quit)
> { "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"] }
< {"id":1,"jsonrpc":"2.0","result":"0xde3ef01eab89ab2d87809a396287ee30"}
>

From BlockPi:

It is a bug from the new node client. Our test shows that v20.0.2 returns data but v20.0.5 does not.

@fadeev fadeev added the bug Something isn't working label Nov 5, 2024
@fadeev
Copy link
Member Author

fadeev commented Nov 5, 2024

Is this related to #3050 ?

@lumtis
Copy link
Member

lumtis commented Nov 5, 2024

cc @skosito

@skosito
Copy link
Contributor

skosito commented Nov 5, 2024

@fadeev i just tried with url from description and it is returning data:

wscat -c wss://zetachain-evm.blockpi.network/v1/ws/1295216a144e08ce8f0d0d452d16fe73cf1ee71e
Connected (press CTRL+C to quit)
> { "jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"] }
< {"id":1,"jsonrpc":"2.0","result":"0xffab0c62959238795ef618e6bde49689"}
< {"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0xffab0c62959238795ef618e6bde49689","result":{"parentHash":"0x6cee131596d2c2091f5c637094fe48a1ac7040510b166fa3e43919b0eb5a7135","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x1a8e7a1590ef7b70b27c18db9bf1c6e83c5f318d","stateRoot":"0x5f9ec844d8f366e28cfe1efbadb55b1291c5d58f9217264e4b6fc9ce647c515f","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","number":"0x5551a2","gasLimit":"0x0","gasUsed":"0x0","timestamp":"0x672a1a88","extraData":"0x","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0x3b9aca00","hash":"0x17e308fad1a17a526a2e29ca7e20100d33ca06e694a7772125553cc5648bdbbd"}}}

< {"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0xffab0c62959238795ef618e6bde49689","result":{"parentHash":"0xf1d97ddbb531c6f55b2ad87b0b5839638c2a681120a854977b71bf6b385005d6","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0xfaaeb4d317ce7a92956c15081f8b3aef89638ae4","stateRoot":"0x61380428fdb2db26dc3c765f37a4ea8fd539eb8781fd15ed97b4d9f46fadadd0","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","number":"0x5551a3","gasLimit":"0x0","gasUsed":"0x0","timestamp":"0x672a1a8e","extraData":"0x","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","baseFeePerGas":"0x3b9aca00","hash":"0x731bde8f0539f06ce1e7f6f6f9b86f157944e0e4d4c3085100cf890f8af1ad62"}}}

@fadeev
Copy link
Member Author

fadeev commented Nov 5, 2024

Odd, it's working now.

Screenshot 2024-11-05 at 16 35 10

@skosito
Copy link
Contributor

skosito commented Nov 5, 2024

that makes sense since #3050 is the only issue that was changing something regarding websockets, and that is not part of v20, it will be for v21

@fadeev fadeev closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants