question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ensure correct metadata for parsing (archive nodes, historical queries)

See original GitHub issue

There 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:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, May 6, 2019

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found