Ensure correct metadata for parsing (archive nodes, historical queries)
See original GitHub issueThere are several blocks throughout the chain that produce the following error when you try to fetch them:
2019-04-16 20:34:56 RPC-CORE: getBlock (hash: Hash): SignedBlock:: Source is too large
ExtError: getBlock (hash: Hash): SignedBlock:: Source is too large
at call (/Users/self/dev/polkadot/statd/node_modules/@polkadot/rpc-core/index.js:134:15)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
This code will recreate the problem:
const hash = new Hash(
'0x6f6f9bba0eed8e3ae9446c37eee763f93118b52a315a7b46090453ba6288da1f'
);
api.rpc.chain.getBlock(hash)
Also, you will notice there is no then
or catch
on the getBlock
promise. That is because the above error does not actually land in the catch block. It gets handled and logged by the library itself, which makes it more difficult for me to handle the error in my code.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Searching the SQL Server query plan cache
Understanding how to access and use the metadata about query execution will provide us the tools we need to answer questions about our ......
Read more >Querying Documents and Metadata (Node.js Application ...
When you search document content and metadata using the Node.js Client API, you can express your search criteria using the following query styles....
Read more >Metadata API Developer Guide
Metadata is data that describes other data. To understand how Salesforce defines metadata, contrast business data with Salesforce metadata.
Read more >Metadata fields | Elasticsearch Guide [8.5] | Elastic
Each document has metadata associated with it, such as the _index and _id metadata fields. The behavior of some of these metadata fields...
Read more >Serverless SQL pool self-help - Azure Synapse Analytics
If you want to query data2.csv in this example, the following permissions are needed: Execute permission on container; Execute permission on ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would this help?
https://github.com/paritytech/substrate-api-sidecar/blob/master/src/ApiHandler.ts
I am currently sync-ing with archive mode, so will be looking at this one as well as https://github.com/polkadot-js/api/issues/846 ASAP. (They have been hanging for way too long)