Skip to content

Commit 3461702

Browse files
committed
Handle more miscategorized errors from indexers
1 parent e838854 commit 3461702

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graph-gateway/src/unattestable_errors.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
// from getting to users.
33
// Derived from https://github.com/graphprotocol/graph-node/blob/master/graph/src/data/query/error.rs
44
#[rustfmt::skip]
5-
pub const UNATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 19] = [
5+
pub const UNATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 18] = [
66
"Non-list value resolved for list field", // ListValueError
77
"Failed to get entities from store:", // ResolveEntitiesError
88
"argument must be between 0 and", // RangeArgumentsError
99
"Broken entity found in store:", // EntityParseError
1010
"Store error:", // StoreError
1111
"Query timed out", // Timeout
12-
"Failed to coerce value", // EnumCoercionError, ScalarCoercionError
1312
"Ambiguous result for derived field", // AmbiguousDerivedFromResult
1413
"Possible solutions are reducing the depth", // TooComplex
1514
"query has a depth that exceeds the limit", // TooDeep
@@ -28,7 +27,8 @@ pub const UNATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 19] = [
2827
// Note: The linked PRs may be merged. But these must still be special-cased unless the minimum
2928
// indexer version includes these fixes.
3029
#[rustfmt::skip]
31-
pub const MISCATEGORIZED_ATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 2] = [
30+
pub const MISCATEGORIZED_ATTESTABLE_ERROR_MESSAGE_FRAGMENTS: [&str; 3] = [
3231
"Null value resolved for non-null field", // NonNullError (https://github.com/graphprotocol/graph-node/pull/3507)
3332
"Failed to decode", // ValueParseError (https://github.com/graphprotocol/graph-node/pull/4278)
33+
"Failed to coerce value", // EnumCoercionError, ScalarCoercionError (https://github.com/graphprotocol/graph-node/pull/4278)
3434
];

0 commit comments

Comments
 (0)