graphprotocol / support

Community support for the Hosted Service of The Graph
https://thegraph.com/
10 stars 3 forks source link

`_meta.block.timestamp` is intermittently null on hosted service #104

Open volkyeth opened 1 year ago

volkyeth commented 1 year ago

When querying for the block timestamp, I've noticed it intermittently comes as null. It makes it harder to keep UIs in sync with contracts that rely on block timestamps.

I managed to reproduce the issue in multiple subgraphs on the hosted service, but not on network graphs, so the issue seems to be with the hosted service

Query:

_meta {
  block {
    number
    timestamp
  }
}

Result: timestamp-null It doesn't happen in every block. Some blocks consistently return the timestamp (block 17300022 in the example above). I can see it's not null only when the block is recently fetched, but when querying several times in a row it's intermittently null (block 17300023 in the example above).