Skip to content

/blocks/:height sometimes always return error message for a block #1081

@Ljzn

Description

@Ljzn

Description

Sometimes the /blocks/:height api always return this message:

{"code":500,"message":"No response received from RPC endpoint in 60s","stack":"Error: No response received from RPC endpoint in 60s\n    at WsProvider.value (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:406:32)\n    at Timeout._onTimeout (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:528:182)\n    at listOnTimeout (node:internal/timers:557:17)\n    at processTimers (node:internal/timers:500:7)","level":"error"}

Steps to Reproduce

Run substrate-api-sidecar connecting to a Kusama ws endpoint.

Expected vs. Actual Behavior

expected: Get block by height success.

actual: always return same error message for specific block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions