Skip to content

[Bug] substreams powered subgraph is healthy even if its failed #5749

Description

@shiyasmohd

Bug report

SPS is shown as healthy and has no errors returned in index-node api even if subgraph is failed with an error.
When checking logs, it has failed with the below error

ERRO Subgraph instance failed to run: error while executing at wasm backtrace:\n    0: 0x43f2 - <unknown>!src/mappings/handleTriggers: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`: error while executing at wasm backtrace:\n    0: 0x43f2 - <unknown>!src/mappings/handleTriggers: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`, sgd: XXXXX, subgraph_id: Qmc8XkaebEhdtMiTqWsTA9JzM1xvFsd7HjonFXKBU5bXSk,

Index-node API response

{
    "data": {
        "indexingStatuses": [
            {
                "subgraph": "Qmc8XkaebEhdtMiTqWsTA9JzM1xvFsd7HjonFXKBU5bXSk",
                "synced": false,
                "health": "healthy",
                "fatalError": null,
                "nonFatalErrors": []
            }
        ]
    }
}

Relevant log output

ERRO Subgraph instance failed to run: error while executing at wasm backtrace:\n    0: 0x43f2 - <unknown>!src/mappings/handleTriggers: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`: error while executing at wasm backtrace:\n    0: 0x43f2 - <unknown>!src/mappings/handleTriggers: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`: Entity Token[0x4200000000000000000000000000000000000006]: missing value for non-nullable field `totalSupply`, sgd: XXXXX, subgraph_id: Qmc8XkaebEhdtMiTqWsTA9JzM1xvFsd7HjonFXKBU5bXSk,

IPFS hash

Qmc8XkaebEhdtMiTqWsTA9JzM1xvFsd7HjonFXKBU5bXSk

Subgraph name or link to explorer

No response

Some information to help us out

  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

None

Metadata

Metadata

Assignees

Labels

area/substreamsSubstreams related issuesbugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions