Open Stakecraft opened 2 years ago
I won't have a chance to look into this closely for a little while - but can you just use node v16 in your environment?
sure, I can try.
unfortunately it doesn't work
node -v v16.15.0
payouts --version 1.4.1
2022-05-25 22:24:38 API/INIT: RPC methods not decorated: beefy_getFinalizedHead, mmr_generateBatchProof, state_trieMigrationStatus
2022-05-25 22:24:39 API/INIT: Error: FATAL: Unable to initialize the API: createType(StorageEntryTypeLatest):: Invalid character
at EventEmitter.value (/usr/lib/node_modules/@zekemostov/staking-payouts/node_modules/@polkadot/api/base/Init.cjs:86:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-05-25 22:25:38 API-WS: disconnected from wss://kusama.api.onfinality.io/public: 1006:: Connection dropped by remote peer.
2022-05-25 22:25:41 API/INIT: RPC methods not decorated: beefy_getFinalizedHead, mmr_generateBatchProof, state_trieMigrationStatus
2022-05-25 22:25:42 API/INIT: Error: FATAL: Unable to initialize the API: createType(StorageEntryTypeLatest):: Invalid character
at EventEmitter.value (/usr/lib/node_modules/@zekemostov/staking-payouts/node_modules/@polkadot/api/base/Init.cjs:86:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
hi @emostov any chance to look into issue in the following month?
@Stakecraft - I can't reproduce your issue with node v16, but I put out a new release, v1.4.2, with updated deps and it works for me locally with node v18 and v16.
Some warnings are still the same "API/INIT: RPC methods not decorated" https://github.com/canontech/staking-payouts/issues/94
PAYOUTS_DEBUG=1 payouts -w wss://kusama.api.onfinality.io/public --stashesFile kusama_validator.json -u kusama-payout.key -e 4
any advices to fix this bug?