canontech / staking-payouts

CLI to make staking payout transactions for Substrate FRAME-based chains
Apache License 2.0
43 stars 14 forks source link

METADATA: Unknown types found, no types for ValidationCodeHash #65

Closed hitchhooker closed 3 years ago

hitchhooker commented 3 years ago

getting following error with latest version after exiting claiming payouts

kusamaxi@vmi560015:~$ cat crontab.logs.docker.kusamaxi
2021-06-25 15:42:10 [payouts] info: No payouts to claim
2021-06-25 15:42:10 [payouts] info: Exiting ...
2021-06-25 15:42:26          API-WS: disconnected from wss://kusama-rpc.polkadot.io: 1006:: Connection dropped by remote peer.
2021-06-25 15:42:31        METADATA: Unknown types found, no types for ValidationCodeHash
2021-06-25 15:42:32        API/INIT: Error: FATAL: Unable to initialize the API: createType(ValidationCodeHash):: Cannot construct unknown type ValidationCodeHash
    at EventEmitter.value (/app/node_modules/@polkadot/api/base/Init.cjs:88:25)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
2021-06-25 15:43:29          API-WS: disconnected from wss://kusama-rpc.polkadot.io: 1006:: Connection dropped by remote peer.
2021-06-25 15:43:36        METADATA: Unknown types found, no types for ValidationCodeHash
2021-06-25 15:43:36        API/INIT: Error: FATAL: Unable to initialize the API: createType(ValidationCodeHash):: Cannot construct unknown type ValidationCodeHash
    at EventEmitter.value (/app/node_modules/@polkadot/api/base/Init.cjs:88:25)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
emostov commented 3 years ago

This issue was fixed with 1.2.1 - can you please make sure you are using that exact version, have installed its dependencies and rebuilt?

emostov commented 3 years ago

Closing due to inactivity