- This is a bug report
- I'm trying to deploy my subgraph. It used the ABI of the USDT contract, and is supposed to index an entity whenever the
to in the Transfer event is the address of our contract (i.e. whenever someone staked USDT in the contract).
This works well on Ethereum. On Matic (Polygon), we get the following fatal error:
"failed to process trigger: block #15167232 (0x7b2a…0d6b), transaction 4641fb604c8b6b9d515f57f364e8039fb600ed0471a7dcb7f16f2bd1314501f1: Found no transaction for event"
This is consistent, and reproducible. I tried adding a function that leaves the handler in case: the block number is 15167232, the block number is between 15167200 and 15167240 (thought a range would help), if event.transaction is empty - to no avail, this error still happens. My guess is this happens before my handler code, and therefore, not under my control.
My workaround is to add a higher startBlock number to the yaml, but the we lose tons of events.
My expected behavior is either a resolution that allows me to index the graph, or a way to bypass whatever problem triggers the fatal error.
More details:
- The subgraph can be found at: https://thegraph.com/explorer/subgraph/travelingtechguy/cvipolygon
- I can provide a link to the code, if needed. It has other entities that index well.
toin theTransferevent is the address of our contract (i.e. whenever someone staked USDT in the contract).This works well on Ethereum. On Matic (Polygon), we get the following fatal error:
This is consistent, and reproducible. I tried adding a function that leaves the handler in case: the block number is 15167232, the block number is between 15167200 and 15167240 (thought a range would help), if
event.transactionis empty - to no avail, this error still happens. My guess is this happens before my handler code, and therefore, not under my control.My workaround is to add a higher
startBlocknumber to the yaml, but the we lose tons of events.My expected behavior is either a resolution that allows me to index the graph, or a way to bypass whatever problem triggers the fatal error.
More details: