Phala-Network / phala-blockchain

The Phala Network Blockchain, pRuntime and the bridge.
https://phala.network
Apache License 2.0
332 stars 149 forks source link

`api.rpc.chain.getFinalizedHead` freezes whole WebSocket JSONRPC session #736

Open krhougs opened 2 years ago

krhougs commented 2 years ago

In some case, calling api.rpc.chain.getFinalizedHead in Polkadot.js with the parachain will fail without any error message but a timeout error. After this, whole JSONRPC WebSocket session is frozen, we can get health warnings which indicate that the keepalive requests got no response.

It only happens on the Khala parachain, same rpc method works just fine on the kusama node, reproduced by the miner community.

Related: https://github.com/Phala-Network/runtime-bridge/issues/83

h4x3rotab commented 2 years ago

Let's keep an eye on the upstream issue