When catches events, happened error.
See original GitHub issuepolkadot-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
Issue Analytics
- State:
- Created 4 years ago
- Comments:28 (27 by maintainers)
Top Results From Across the Web
Window: error event - Web APIs - MDN Web Docs - Mozilla
The error event is fired on a Window object when a resource failed to load or couldn't be used — for example if...
Read more >Handling errors in processes - IBM
When modeling error handling as part of your process, you can catch errors using error intermediate events or event subprocesses, and you can...
Read more >Try/catching errors occuring in synchronous event handlers
In regards to your try/catch statement, it is functioning properly. The point of a try/catch is to try a block and catch any...
Read more >Does addEventListener(ErrorEvent.ERROR, handler) handle ...
When an uncaughtError event happens, even if the event is handled, execution does not continue in the call stack that caused the error....
Read more >Error handling, "try...catch" - The Modern JavaScript Tutorial
So, try...catch can only handle errors that occur in valid code. Such errors are called “runtime errors” or, sometimes, “exceptions”.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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==
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.