Skip to content

Unclear error message when unsupported network name used #1776

@fordN

Description

@fordN

Streaming query is failing with the error below which is not very clear to a user. For context, this was encountered when syncing an amp powered subgraph.

We should ensure the error messages in the query path provide clear suggestions and description for users without internal knowledge of the system.

Feb 15 17:37:27.550 DEBG Executing SQL query, query: SELECT _block_num FROM "edgeandnode/ethereum_mainnet".blocks SETTINGS stream = true, query_hash: 3008183410508104704, sgd: 267, subgraph_id: Qmekr5hxPfmhrSoVsdpVaziuFsZagroq85f6NGzw3dGDvm, component: AmpSubgraphManager > AmpSubgraphRunner > AmpFlightClient
Feb 15 17:37:28.303 WARN Subgraph failed with a non-deterministic error, retry_delay_seconds: 1, e: NonDeterministic(failed to detect reorg in '"edgeandnode/ethereum_mainnet".blocks'

Caused by:
    0: service failed: Ipc error: Status { code: Internal, message: "streaming query execution error: Expected resume watermark for network 'ethereum-mainnet'", metadata: MetadataMap { headers: {"content-type": "application/grpc", "server": "envoy", "x-envoy-upstream-service-time": "429", "date": "Mon, 16 Feb 2026 01:37:28 GMT"} }, source: None }
    1: Ipc error: Status { code: Internal, message: "streaming query execution error: Expected resume watermark for network 'ethereum-mainnet'", metadata: MetadataMap { headers: {"content-type": "application/grpc", "server": "envoy", "x-envoy-upstream-service-time": "429", "date": "Mon, 16 Feb 2026 01:37:28 GMT"} }, source: None }), sgd: 267, subgraph_id: Qmekr5hxPfmhrSoVsdpVaziuFsZagroq85f6NGzw3dGDvm, component: AmpSubgraphManager > AmpSubgraphRunner
Feb 15 17:37:29.316 DEBG Restarting indexing, sgd: 267, subgraph_id: Qmekr5hxPfmhrSoVsdpVaziuFsZagroq85f6NGzw3dGDvm, component: AmpSubgraphManager > AmpSubgraphRunner```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions