Unexpected RPC error, error: Transport(Code(413)) [SOLVED]

Unexpected RPC error, error: Transport(Code(413)) [SOLVED]

While running a local node of the graph a got this error who stopped my indexing. The reason is I was asking for a block range too big. In the docker compose of the graph node I had this env:

  graph-node:
    image: graphprotocol/graph-node
    environment:
      GRAPH_ETHEREUM_MAX_BLOCK_RANGE_SIZE: 50000

I simply put there a smaller amount:

  graph-node:
    image: graphprotocol/graph-node
    environment:
      GRAPH_ETHEREUM_MAX_BLOCK_RANGE_SIZE: 10000

That solved my problem

Leave a Reply

Your email address will not be published. Required fields are marked *