Skip to content

Cosmos indexer failing with Error: Cannot read properties of undefined (reading 'body') #277

@metmirr

Description

@metmirr

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

I am running indexer for neutron pion-1 testnet. It is failing with this error

2024-07-30T08:53:44.064Z <WorkerBlockDispatcherService> INFO Enqueueing blocks 12696071...12696100, total 30 blocks 
2024-07-30T08:53:46.198Z <WorkerBlockDispatcherService> ERROR failed to index block at height 12696071  Error: Cannot read properties of undefined (reading 'body')
2024-07-30T08:53:51.121Z <subql-node> INFO Current @subql/node-cosmos version is 4.0.1 
2024-07-30T08:53:51.123Z <subql-node> INFO Current @subql/node-cosmos version is 4.0.1 

Details

These details can help to reproduce the environment the issue is occurring

Local Environment: @subql/cli/5.1.1 darwin-x64 node-v18.17.1
Query Version: [What is the version of the query service?] N/A
Indexer Version: [What is the version of the indexer service?] N/A
Network Details:

  • Neutron, pion-1
  • [Block height, a block height where the issue is happening] 12696071
  • [Dictionary endpoint, if used]

Steps to Reproduce

  1. Clone the project https://github.com/egabee/neutron-indexer-v1
  2. Switch to branch indexer-bug
  3. bun install && bun run codegen && bun run build && bun run start:docker

Expected behavior: [What you expected to happen]

Indexer to run successfully and index the chain.

Actual behavior: [What actually happened]

Failing with error that is related to decoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions