subql icon indicating copy to clipboard operation
subql copied to clipboard

`Failed to parse log data` is not a critical error

Open ianhe8x opened this issue 1 year ago • 0 comments

Prerequisites

  • [ ] Are you running the latest version(s)?
  • [ ] Have you searched the documentation for your issue?
  • [ ] Did you search for an existing issue or pull request?

Description

In one of my mapping function, for event: SetControllerAccount(address indexed indexer, address indexed controller), event.args is undefined. I thought it was because both event params are indexed, that I have to decode them from event.topics.

But then I noticed, there's a warning says Failed to parse log data: ABI named "indexerRegistry" not referenced in assets and it is actually a typo in my manifest.

After I fixed the typo, event args was back.

Details

I think such error should be an error rather than warning, and the node need to exit.

Indexer Version: @subql/node-ethereum:2.9.1

ianhe8x avatar Jul 09 '23 12:07 ianhe8x