Skip to content
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

Error syncing subgraph #75

Open
hodlthedoor opened this issue Jun 5, 2023 · 1 comment
Open

Error syncing subgraph #75

hodlthedoor opened this issue Jun 5, 2023 · 1 comment

Comments

@hodlthedoor
Copy link

When syncing the subgraph I get an error when it gets to block 16934752. This is when the first ENS domain was wrapped.

The error refers to domain firstwrappedname.eth which does exist in the domains table of the postgreSQL database

Here is the error and stack-trace:

ERROR Subgraph failed with non-deterministic error: failed to process trigger: block #16934752 (0xc616…7aec), transaction cdfd894595e7d3b898cb9c58235f33e8286a46097c15ca18c1bffe59e6cc9a37: Entity WrappedDomain[0xc44eec7fb870ae46d4ef4392d33fbbbdc164e7817a86289a1fe30e5f4d98ae85]: missing value for non-nullable field domain wasm backtrace: 0: 0x3847 - <unknown>!src/types/schema/WrappedDomain#save 1: 0x4693 - <unknown>!src/nameWrapper/makeWrappedTransfer 2: 0x4873 - <unknown>!src/nameWrapper/handleTransferSingle , retry_delay_s: 120, attempt: 0, sgd: 1, subgraph_id: QmXbT1RGq4hrqhYPtcd1muDu7Hg2f9uUXRPeP6ZHNU3NL8, component: SubgraphInstanceManager

@pk910
Copy link

pk910 commented Jun 14, 2023

I've ran into exactly the same issue.
Fixed it for me by moving the wrappedDomain.save(); (L215) line below the domain.save(); (L217) line in src/nameWrapper.ts...
There is even a comment that describes what goes wrong, but calling wrappedDomain.save before saving the newly created domain it points to doesn't work.
It looks like this has never been tested on a new deployment without the legacy stuff ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants