-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encountering a consistent indexing error on Matic "Found no transaction for event" #2552
Comments
Update: I advanced the
|
Thanks for reporting @TravelingTechGuy - can you please share a link to the code so we can replicate? |
Hi @azf20 - thanks for looking into this! If you look at this branch - the USDT2.json is the USDT ABI I took from the Matic explorer. Change the In fact, we've now separated them from the USDT contract, as they index well, and USDT blows up. In short, I'd say the quickest recreation steps:
|
We have replicated this, it is possibly related to the fact that the e.g. here https://polygonscan.com/tx/0x626d7374ca1862fe801fad8b57418fddd19f826b2d9797a014c5589da343985d |
Thanks for being on top of it @azf20! I also wonder: a 0x to 0x transfer: it's not a burn per se - is that an indexing error, or some bot doing something? |
It is a special case on Polygon, I think it relates to their bridge - the tokens aren't transferred from 0x to 0x, but the transaction itself is a |
Thanks for the update @azf20 - i assumed it was something to do with Polygon, since we haven't run into it on mainnet. |
Yes I think this is throwing before the handler is initiated - @tilacog is investigating! |
We have identified the issue, which relates to our Matic RPC not including all transactions in |
We cleared the cache, which has resolved this issue for the subgraph we were testing with - @TravelingTechGuy you should be able to restart this subgraph before the problematic block (15167232), and it should index successfully. I will close this issue, but please do re-open if you see a recurrence! |
This recurred on the Decentraland subgraph:
|
Since this error is solved by re-fetching the block, would it make sense to implement some retry mechanism whenever this error surfaces? |
Started encountering this error as well and I'm not sure how to get around it. Any help is greatly appreciated $curl -s --location --request POST https://api.thegraph.com/index-node/graphql --data-raw '{"query":"{ indexingStatusForPendingVersion(subgraphName: \"hop-protocol/hop-polygon\") { subgraph fatalError { message } nonFatalErrors {message } } }"}'
{"data":{"indexingStatusForPendingVersion":{"fatalError":{"message":"failed to process trigger: block #16573056 (0x00d5…7cad), transaction 059189fea36971157989bf3c13b17743c9313df88f317b3fa68d59793c117c03: Found no transaction for event"},"nonFatalErrors":[],"subgraph":"QmWEF3CEusZDBLwkM2ijUoFH8yuFbaFZcE2EAUpr8ykxbk"}}} |
@tilacog The question is when do we know if we need to retry. Maybe if we double check the array of transactions received against |
@miguelmota We've re-fetched the matic faulty block at the hosted service. Can you please confirm if the error is gone now? |
@tilacog A subgraph reedeployment was made but the issue occurred again towards the end of the sync https://thegraph.com/legacy-explorer/subgraph/hop-protocol/hop-polygon?version=pending |
@miguelmota Thanks for the extra info. Please let us know if this incident happens again, and we'll try to fix the problem. |
@tilacog looks to be fixed! Thanks! |
@tilacog There's another failure here |
@miguelmota Thanks for the heads up! |
@leoyvens did you happen to try what you suggested , eth_getTransactionCount and then comparing it with the array returned from getBlockByHash. ? |
In the meanwhile m trying to figure out why the sync issue on the bor nodes is happening and why is it aways for state sync transactions. |
@tilacog thanks again! |
Sync error - {"data":{"indexingStatusForPendingVersion":{"fatalError":{"message":"failed to process trigger: block #16785216 (0xdc6c…85c5), transaction 8d63b25cbc8e3fa4a62b4513d70151f8485c1fe1d5da044a83789a47219a6b55: Found no transaction for event"},"nonFatalErrors":[],"subgraph":"QmfDg1oHAPb7TPuy882BfBFZrJKMPNEuib98Em7rFds2nb"}}} |
Sync error - {"data":{"indexingStatusForPendingVersion":{"fatalError":{"message":"failed to process trigger: block #16797184 (0x1d93…909a), transaction df952e2b5bb59beb5acbced5be788277312ec838142a808fcdbe437cff8ff12f: Found no transaction for event"},"nonFatalErrors":[],"subgraph":"QmfDg1oHAPb7TPuy882BfBFZrJKMPNEuib98Em7rFds2nb"}}} |
Hey @tilacog Messages on Polygon that are sent from L1 appear as events that are emitted from the On any other chain, I would expect this event to be emitted on the transaction that actually updated state. However, on Polygon, the transaction that emits the event is not the transaction that updates state. Might this be the issue that the indexer is running into? |
Sync error - {"data":{"indexingStatusForPendingVersion":{"fatalError":{"message":"failed to process trigger: block #16800192 (0x131d…5b30), transaction 18ad7854383bfb6bf2712aa95b710ffc254ce91e882c3ed6306f929322dcdd53: Found no transaction for event"},"nonFatalErrors":[],"subgraph":"QmfDg1oHAPb7TPuy882BfBFZrJKMPNEuib98Em7rFds2nb"}}} |
Hey @miguelmota and others here: We cleaned our db and apparently the new Bor version should fix our problem. Your subgraph is syncing. We hope that we now finally have a stable situation. Let us know if there are any problems. |
Thanks for the update @schmidsi! Have not seen any syncing errors since the update 🎉 |
Nice. I close this issue then. Feel free to reopen if the problem still persists. |
Seems like we have this problem now on Mumbai: https://thegraph.com/legacy-explorer/subgraph/lemonadesocial/lemonade-marketplace?version=pending |
https://thegraph.com/legacy-explorer/subgraph/lemonadesocial/lemonade-marketplace?version=pending failed again with error: "failed to process trigger: block #18160704 (0xfa5e…0628), transaction ff72d1f7e52a138fa8ff82190215119118b7a66f16844eadca4d0e053cf2f6b2: Found no transaction for event" |
Thanks. This is strange, as this was one of the blocks which was cleared from the cache, can you confirm @tilacog ? |
Yes, I can confirm this block was previously deleted. |
Again 🤯: https://thegraph.com/legacy-explorer/subgraph/lemonadesocial/lemonade-marketplace?version=pending
|
@tilacog could you please help us out with https://thegraph.com/legacy-explorer/subgraph/lemonadesocial/lemonade-marketplace?version=pending
Thank you |
hello @tilacog we noticed this on self-hosted graph node as well, is there an easy way to resync a block? |
Currently, to resync a faulty block you must delete the block record from its database table and restart graph-node afterwards. |
@tilacog : which table are you referring to? |
@piavgh It depends on how graph-node is configured. It can be either the The |
@tilacog : thanks, I will check to see if I can delete the error block Btw, why the |
@piavgh Then I believe your block cache should be in a dedicated table, as in the You can check your config file to discover where those blocks are being kept. |
The actual table is in a different namespace. You can use \dn to list the namespace, and query the table in the other namespace. |
Closing this for now, please re-open if you see this issue again on Polygon (Matic) |
Hi, seems like Mumbai still has this issue, on block 18122880. The issue again is on a transaction from the zero address.
|
Still experiencing this issue with zkSync Era mainnet:
|
@gssvv can you share the deployment ID of the subgraph ? also that block doesnt seem to exist on zksync era |
@incrypto32 Sure, it's |
I'm also facing the same thing issue, but was curious if this only happens when indexing tokens. |
The same issue with @gssvv , any workaround here? |
to
in theTransfer
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:
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 text was updated successfully, but these errors were encountered: