Skip to content

[rpc] Polkadot assethub rpc's randomly stop providing chain_getBlockHash which breaks polkadot.js api. #10719

@stakeworld

Description

@stakeworld

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Hi,

I'm noticing some strange behaviour on polkadot assethub rpc's, were sometimes the rpc server stops providing some information and polkadot.js api blocks. One symptom I notice is that an rpc call for chain_getBlockHash returns no value. A restart fixes the problem. The problems keeps happening randomly over different nodes, without problems with disk space, resources etc. No specific errors in the logs.

Looking at polkadot.js it is affecting multiple providers: polkadot-js/apps#12094

This is expected:

root@monitor:/# websocat -1 -k wss://dot-rpc.stakeworld.io/assethub <<< '{"id":1,"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0]}'
{"jsonrpc":"2.0","id":1,"result":"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"}
root@monitor:/#

This happens in error:

root@monitor:/# websocat -1 -k wss://rpc-asset-hub-polkadot.luckyfriday.io <<< '{"id":1,"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0]}'
root@monitor:/# 

Also the parity endpoint is erroring but that seems maybe a different problem:

root@monitor:/# websocat -1 -k wss://polkadot-asset-hub-rpc.polkadot.io <<< '{"id":1,"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0]}'
websocat: WebSocketError: WebSocketError: Received unexpected status code (429 Too Many Requests)
websocat: error running
root@monitor:/#

When in error a command like:

root@monitor:/# polkadot-js-api --ws wss://rpc-asset-hub-polkadot.luckyfriday.io rpc.system.version
2026-01-03 11:05:44        RPC-CORE: getBlockHash(blockNumber?: BlockNumber): BlockHash:: No response received from RPC endpoint in 60s
2026-01-03 11:05:44        RPC-CORE: getRuntimeVersion(at?: BlockHash): RuntimeVersion:: No response received from RPC endpoint in 60s
2026-01-03 11:05:44        API/INIT: Error: FATAL: Unable to initialize the API: No response received from RPC endpoint in 60s
    at #onProviderConnect (file:///root/.nvm/versions/node/v20.16.0/lib/node_modules/@polkadot/api-cli/node_modules/@polkadot/api/base/Init.js:387:27)

times out.

Steps to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    I10-unconfirmedIssue might be valid, but it's not yet known.I2-bugThe node fails to follow expected behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions