kusama-validator-stats icon indicating copy to clipboard operation
kusama-validator-stats copied to clipboard

Failing on debian with nodejs and yarn

Open flipchan opened this issue 3 years ago • 0 comments

Hey, Is this repo still working?

can't seem to get it working on debian:

kusama-validator-stats$ node index.js
2022-02-05 13:02:24        RPC-CORE: subscribeRuntimeVersion(): RuntimeVersion:: Invalid id field in decoded object
2022-02-05 13:02:24        API/INIT: RPC methods not decorated: babe_epochAuthorship, beefy_subscribeJustifications, beefy_unsubscribeJustifications, childstate_getKeys, childstate_getKeysPaged, childstate_getKeysPagedAt, childstate_getStorage, childstate_getStorageEntries, childstate_getStorageHash, childstate_getStorageSize, grandpa_proveFinality, grandpa_roundState, grandpa_subscribeJustifications, grandpa_unsubscribeJustifications, mmr_generateProof, offchain_localStorageGet, offchain_localStorageSet, payment_queryFeeDetails, state_getChildReadProof, state_getPairs, state_getReadProof, state_queryStorageAt, state_traceBlock, sync_state_genSyncSpec, system_addLogFilter, system_addReservedPeer, system_chainType, system_dryRun, system_dryRunAt, system_localListenAddresses, system_localPeerId, system_nodeRoles, system_removeReservedPeer, system_reservedPeers, system_resetLogFilter, system_syncState, system_unstable_networkState}
2022-02-05 13:02:24        RPC-CORE: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 14, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11
2022-02-05 13:02:24        API/INIT: Error: FATAL: Unable to initialize the API: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 14, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11
    at EventEmitter.value (kusama-validator-stats/node_modules/@polkadot/api/base/Init.js:67:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:3456) UnhandledPromiseRejectionWarning: Error: FATAL: Unable to initialize the API: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 14, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11
    at EventEmitter.value (/kusama-validator-stats/node_modules/@polkadot/api/base/Init.js:67:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:3456) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3456) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2022-02-05 13:03:24          API-WS: disconnected from wss://kusama-rpc.polkadot.io/ code: '1006' reason: 'Connection dropped by remote peer.'
2022-02-05 13:03:26        API/INIT: Connection to new genesis detected, re-initializing
2022-02-05 13:03:26        RPC-CORE: subscribeRuntimeVersion(): RuntimeVersion:: Invalid id field in decoded object
2022-02-05 13:03:26        API/INIT: RPC methods not decorated: babe_epochAuthorship, beefy_subscribeJustifications, beefy_unsubscribeJustifications, childstate_getKeys, childstate_getKeysPaged, childstate_getKeysPagedAt, childstate_getStorage, childstate_getStorageEntries, childstate_getStorageHash, childstate_getStorageSize, grandpa_proveFinality, grandpa_roundState, grandpa_subscribeJustifications, grandpa_unsubscribeJustifications, mmr_generateProof, offchain_localStorageGet, offchain_localStorageSet, payment_queryFeeDetails, state_getChildReadProof, state_getPairs, state_getReadProof, state_queryStorageAt, state_traceBlock, sync_state_genSyncSpec, system_addLogFilter, system_addReservedPeer, system_chainType, system_dryRun, system_dryRunAt, system_localListenAddresses, system_localPeerId, system_nodeRoles, system_removeReservedPeer, system_reservedPeers, system_resetLogFilter, system_syncState, system_unstable_networkState}
2022-02-05 13:03:26        RPC-CORE: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 14, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11
2022-02-05 13:03:26        API/INIT: Error: FATAL: Unable to initialize the API: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 14, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11
    at EventEmitter.value (/kusama-validator-stats/node_modules/@polkadot/api/base/Init.js:67:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)


flipchan avatar Feb 05 '22 11:02 flipchan