api: When catches events, happened error.
polkadot-js version is 0.79.1
When I try a sample code. https://polkadot.js.org/api/examples/promise/08_system_events/
I happened error below.
Unable to decode Uint8Array for type 'Phase': Unable to create Enum via index 4, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'EventRecord': Unable to create Enum via index 4, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'EventRecord': Unable to create Enum via index 4, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'EventRecord': Unable to create Enum via index 4, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'Phase': Unable to create Enum via index 42, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'EventRecord_0_76': Unable to create Enum via index 42, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'EventRecord_0_76': Unable to create Enum via index 42, in ApplyExtrinsic, Finalization
Unable to decode Uint8Array for type 'EventRecord_0_76': Unable to create Enum via index 42, in ApplyExtrinsic, Finalization
Unable to decode storage system.events: Unable to create Enum via index 42, in ApplyExtrinsic, Finalization
2019-06-05 16:19:00 RPC-CORE: subscribeStorage (keys: Vec<StorageKey>): StorageChangeSet:: Unable to create Enum via index 42, in ApplyExtrinsic, Finalization
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 28 (27 by maintainers)
Could you please upgrade to 0.80.1
These issues are generally caused by the node version being ahead in terms of metadata support.
The same code, with the latest API running - https://polkadot.js.org/apps/#/js/share/vAVgYXBpLnF1ZXJ5LnN5c3RlbS5ldmVudHMoKAkIkCkgPT4gewogICAgY29uc29sZS5sb2coYFxuUmVjZWl2ZWQgJHsJKyAubGVuZ3RofSAJDxA6YCk7CgU5kC8vIGxvb3AgdGhyb3VnaCB0aGUgVmVjPEV2ZW50UmVjb3JkPgoBYgk5LC5mb3JFYWNoKChyZQEcBCkgFYMAIAFMGGV4dHJhY3QFRxRwaGFzZSwJOQwgYW5kBRUFRxQgdHlwZXMFgAm7CHQgewkaACwJNhAgfSA9IAliADsyJwAFOQQgPQktAC4BDghEZWYNywAgAYFkc2hvdyB3aGF0IHdlIGFyZSBidXN5IHdpdGgdSDkqAHQtISQuc2VjdGlvbn06ERFIbWV0aG9kfTo6IChwaGFzZT0kewUIMC50b1N0cmluZygpfSkhRyEdCcYdVxlZNG1ldGEuZG9jdW1lbnRhAWQALh1CAUENQj6KARhlYWNoIG9mJTZUcGFyYW1ldGVycywgZGlzcGxheWluZwUbIQQlXgxkYXRhDUslZQAuARE5sAEOGCwgaW5kZXgytQFKuwABvQFXBHNbBS8AXSVoEH06ICR7AUU+vwApAEB9KTsKICAgIH0pOwogIH0pOw==