graph-node: Make `function not found` a deterministic failure
Do you want to request a feature or report a bug? Bug
What is the current behavior?
If a subgraph handler calls a function that doesn’t exist, the subgraph fails with deterministic: false, and the following error log:
failed to process trigger: block #13380099 (0x38d4…b3aa), transaction ca32b1581b837c6ca539cf6c2fd542e9bcacbdc345c6a424382b4f0e48b96153: function handleSwapped not found
What is the expected behavior? This handler will never run successfully, so this error should be deterministic
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 15 (8 by maintainers)
I’ve observed these myself:
(Same as OP) On block
13380098(38d484acc0f3fe698ac05340877f5d8f766bb23f03883797a6e8452fb524b3aa) subgraphQmWXF3jTLo6Wy9MxDZz6WKhET3GFcSFqn6vmrDDYPF7UHKfailed withOn block
13663246(f5d44376510d09486cc9214cdf87be12948e6155ef76c8203fb963adde16c0f8) subgraphQmY7xD8w9ekjrYLgSr7P1mNhi5dESzhnJmQjx3CssGZYVcfailed withOn block
13468096(33939ae7b79fa2ec62390600d783cee53d344c3ceaed2a12c8237137248189c0) subgraphQmZdsSbRwVD7VVVm5WGxZZC6HYvbjnFb4hcwvQ4fTs5bxAfailed withOn block
4965314(be4a6efc693c2e16b0df7ddeed5f057bd18e23544a3302b4efb7272aa3cbf066) subgraphQmNrS2U5DHqn5DJiKKD1ZS4BpHeAGDsKjftHMwX8LqSZqvfailed withTwo error variants observed:
function handleSwapped not foundmissing value for non-nullable field@tilacog
Plan of attack:
@obernardovieira After #2797 the error message should become more specific. If you could reproduce again and send me the subgraph id on Discord I can try to look into the cause.