Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindEventNamesForEventID Failed #357

Open
yaoyf888 opened this issue Jul 13, 2023 · 1 comment
Open

FindEventNamesForEventID Failed #357

yaoyf888 opened this issue Jul 13, 2023 · 1 comment

Comments

@yaoyf888
Copy link

When parsing block 2200371 in deepbrain chain, FindEventNamesForEventID failed with an error module index 234 out of range. How can I solve this problem?

@cdamian
Copy link
Contributor

cdamian commented Dec 5, 2023

Usually, when this happens, it means that one of the hardcoded event types is outdated, causing subsequent events to fail while decoding.

One option would be to debug the event parsing and see which is the last event/event field that gets processed, you can do so by logging this - https://github.com/centrifuge/go-substrate-rpc-client/blob/master/types/event_record.go#L541

Alternatively, you can use the recently added event retriever, you can find an example here - https://github.com/centrifuge/go-substrate-rpc-client/blob/master/registry/retriever/event_retriever_live_test.go#L52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants