Skip to content

Querying with a block number throws an error #12

@rbval

Description

@rbval

Trying out the following query:

{
  markets(block:{number: 10452217}, first: 7) {
    borrowRate
    cash
    collateralFactor
    exchangeRate
    interestRateModelAddress
    name
    reserves
    supplyRate
    symbol
    id
    totalBorrows
    totalSupply
    underlyingAddress
    underlyingName
    underlyingPrice
    underlyingSymbol
    reserveFactor
    underlyingPriceUSD
  }
}

gives the following error:

{
  "errors": [
    {
      "message": "Invalid value provided for argument `block`: Variable(\"_v2_block\")",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "markets"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "exception": {
          "errors": [
            {
              "message": "Invalid value provided for argument `block`: Variable(\"_v2_block\")",
              "locations": [],
              "path": [
                "markets"
              ]
            }
          ]
        }
      }
    }
  ],
  "data": null
}

Tried this out with other subgraphs and block querying seems to work with them.

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