Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Westend: Error: createType(Call):: findMetaCall: Unable to find Call with index 0x0900/[9,0] #384

Closed
islishude opened this issue Jan 13, 2021 · 3 comments · Fixed by #391
Assignees
Labels
I2 - Bug 🐜 Sidecar has a bug P0 - Drop Everything Shit is broken in production

Comments

@islishude
Copy link

islishude commented Jan 13, 2021

Description

code: lastest commit
nodejs: v14 LTS
network: westend testnet
polkadot: v1.8.27

Steps to Reproduce

request for /blocks/3809155 and get createType(Call):: findMetaCall: Unable to find Call with index 0x0900/[9,0]

2021-01-13 14:19:32 error: REGISTRY: Error: findMetaCall: Unable to find Call with index 0x0900/[9,0]
    at assert (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/util/assert.js:34:11)
    at assertReturn (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/util/assert.js:44:3)
    at TypeRegistry.findMetaCall (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/registry.js:274:35)
    at decodeCallViaObject (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/generic/Call.js:57:34)
    at decodeCall (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/generic/Call.js:100:12)
    at new GenericCall (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/generic/Call.js:129:21)
    at new Type (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/registry.js:311:16)
    at initType (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/createType.js:49:19)
    at createTypeUnsafe (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/createType.js:69:12)
    at createType (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/createType.js:84:10)
2021-01-13 14:19:32 error: createType(Call):: findMetaCall: Unable to find Call with index 0x0900/[9,0] 
 Error: createType(Call):: findMetaCall: Unable to find Call with index 0x0900/[9,0]
    at createTypeUnsafe (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/createType.js:72:11)
    at createType (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/createType.js:84:10)
    at TypeRegistry.createType (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/create/registry.js:268:39)
    at /project/github.com/polkadot-js/substrate-api-sidecar/build/src/services/blocks/BlocksService.js:145:41
        -> /project/github.com/polkadot-js/substrate-api-sidecar/src/services/blocks/BlocksService.ts:226:32
    at Array.map (<anonymous>)
    at Array.map (/project/github.com/polkadot-js/substrate-api-sidecar/node_modules/@polkadot/types/codec/AbstractArray.js:151:27)
    at BlocksService.extractExtrinsics (/project/github.com/polkadot-js/substrate-api-sidecar/build/src/services/blocks/BlocksService.js:142:33)
        -> /project/github.com/polkadot-js/substrate-api-sidecar/src/services/blocks/BlocksService.ts:216:27
    at BlocksService.fetchBlock (/project/github.com/polkadot-js/substrate-api-sidecar/build/src/services/blocks/BlocksService.js:52:45)
        -> /project/github.com/polkadot-js/substrate-api-sidecar/src/services/blocks/BlocksService.ts:81:39
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async BlocksController.getBlockById (/project/github.com/polkadot-js/substrate-api-sidecar/build/src/controllers/blocks/BlocksController.js:92:49)
        -> /project/github.com/polkadot-js/substrate-api-sidecar/src/controllers/blocks/BlocksController.ts:125:4

Expected vs. Actual Behavior

should no error here

@emostov
Copy link
Contributor

emostov commented Jan 13, 2021

This relates to: paritytech/substrate#7228

It is failing to decode finalityTracker.finalHint, which was removed. We will look into a solution.

@emostov emostov added the I2 - Bug 🐜 Sidecar has a bug label Jan 13, 2021
@emostov
Copy link
Contributor

emostov commented Jan 13, 2021

We need to investigate if this will affect non-testnet runtimes.

@emostov
Copy link
Contributor

emostov commented Jan 15, 2021

This is affecting a lot of blocks, including older blocks on polkadot. The issue is coming from using an incorrect registry when trying to create Calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2 - Bug 🐜 Sidecar has a bug P0 - Drop Everything Shit is broken in production
Projects
None yet
2 participants