You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-12-18 04:14:13 error: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
#1562
Open
aobalv123 opened this issue
Dec 18, 2024
· 3 comments
2024-12-18 02:48:27 error: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
RpcError: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
at checkError (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:23:15)
at RpcCoder.decodeResponse (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:39:9)
at WsProvider.__internal__onSocketMessageResult (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:418:51)
at WebSocket.__internal__onSocketMessage (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:407:20)
at callListener (/usr/src/app/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onMessage (/usr/src/app/node_modules/ws/lib/event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/usr/src/app/node_modules/ws/lib/websocket.js:1220:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/usr/src/app/node_modules/ws/lib/receiver.js:596:14)
2024-12-18 02:48:27 error: GET /blocks/head 500 3ms
2024-12-18 04:14:13 error: RPC-CORE: getRuntimeVersion(at?: BlockHash): RuntimeVersion:: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
2024-12-18 04:14:13 error: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
RpcError: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
at checkError (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:23:15)
at RpcCoder.decodeResponse (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:39:9)
at WsProvider.__internal__onSocketMessageResult (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:418:51)
at WebSocket.__internal__onSocketMessage (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:407:20)
at callListener (/usr/src/app/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onMessage (/usr/src/app/node_modules/ws/lib/event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/usr/src/app/node_modules/ws/lib/websocket.js:1220:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/usr/src/app/node_modules/ws/lib/receiver.js:596:14)
2024-12-18 04:14:13 error: GET /blocks/head 500 3ms
^Ccontext canceled
The content you are editing has changed. Please copy your edits and refresh the page.
Thank you @aobalv123 for this issue. Could you please provide the following information:
Which version of Sidecar are you using?
Which endpoint is Sidecar connected to? If it is a local node, could you share the chain you connect to and the node's polkadot-sdk (polkadot binary) version?
From the error message, I am assuming you are receiving this error as soon as you query /blocks/head correct?
Was there any change in your Sidecar instance, network connection, or the connected node prior to this error that might be related?
Have you tried restarting Sidecar or your node to see if the error resolves?
I just checked Sidecar connected to the Acala chain and blocks/head works as expected.
Did you request block height 0 at any point? Because the error message refers to the 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c hash which corresponds to block #0 on Acala chain. If so, then this error message is expected since your node is running with the --pruning 1000 flag so block 0 is no longer available on your node.
I have a problem
2024-12-18 02:48:27 error: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
RpcError: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
at checkError (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:23:15)
at RpcCoder.decodeResponse (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:39:9)
at WsProvider.__internal__onSocketMessageResult (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:418:51)
at WebSocket.__internal__onSocketMessage (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:407:20)
at callListener (/usr/src/app/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onMessage (/usr/src/app/node_modules/ws/lib/event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/usr/src/app/node_modules/ws/lib/websocket.js:1220:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/usr/src/app/node_modules/ws/lib/receiver.js:596:14)
2024-12-18 02:48:27 error: GET /blocks/head 500 3ms
2024-12-18 04:14:13 error: RPC-CORE: getRuntimeVersion(at?: BlockHash): RuntimeVersion:: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
2024-12-18 04:14:13 error: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
RpcError: 4003: Client error: Api called for an unknown Block: State already discarded for 0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c
at checkError (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:23:15)
at RpcCoder.decodeResponse (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/coder/index.js:39:9)
at WsProvider.__internal__onSocketMessageResult (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:418:51)
at WebSocket.__internal__onSocketMessage (/usr/src/app/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:407:20)
at callListener (/usr/src/app/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onMessage (/usr/src/app/node_modules/ws/lib/event-target.js:209:9)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/usr/src/app/node_modules/ws/lib/websocket.js:1220:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/usr/src/app/node_modules/ws/lib/receiver.js:596:14)
2024-12-18 04:14:13 error: GET /blocks/head 500 3ms
^Ccontext canceled
Tasks
The text was updated successfully, but these errors were encountered: