Open PierreBesson opened 2 years ago
this is due to the new weight update into a struct rather than a plain number.
https://github.com/paritytech/substrate/pull/10918#discussion_r815885876 https://forum.polkadot.network/t/weight-v2-discussion-and-updates/227
This is now happening when connecting to Statemint RPC:
[22-10-18 12:30:44] info: connecting wss://rpc.polkadot.io to pallet nominationPools
[22-10-18 12:30:44] info: registering nominationPools exporter for chain Polkadot
[22-10-18 12:30:44] info: connecting to chain wss://statemint-rpc.polkadot.io
/usr/src/polkadot-prom-exporter/build/workers/systemWorker.js:181
yield exporter.writeWeight(timestamp, chainName.toString(), weight.normal.toNumber(), 'normal', exporter.withProm);
^
TypeError: weight.normal.toNumber is not a function
at SystemExporter.<anonymous> (/usr/src/polkadot-prom-exporter/build/workers/systemWorker.js:181:87)
at Generator.next (<anonymous>)
at fulfilled (/usr/src/polkadot-prom-exporter/build/workers/systemWorker.js:28:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at processImmediate (node:internal/timers:437:9)
There is a fix for that with PR35, going to merge it
I don't see a PR 35, is it created yet?
The runtime-exporter crashes on startup with the following error:
Config: