{"record":{"id":"9546ddd268119249","repo":"hasura/graphql-engine","slug":"unable-to-find-field-call","errorCode":null,"errorMessage":"unable to find field call","messagePattern":"unable to find field call","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/crates/graphql/lang-graphql/src/generate_graphql_schema.rs","lineNumber":17,"sourceCode":"/*\nThis module provides functions to generate introspection result as GraphQL schema\nfor each namespace from the schema.\n */\nuse json_ext;\nuse std::collections::BTreeMap;\nuse std::sync::OnceLock;\nuse tracing_util::SpanVisibility;\nuse tracing_util::{ErrorVisibility, TraceableError};\n\n#[derive(Debug, thiserror::Error)]\npub enum Error {\n    #[error(\"unable to parse introspection query: {0}\")]\n    ParseIntrospectionQuery(String),\n    #[error(\"unable to normalize introspection query: {0}\")]\n    NormalizeIntrospectionQuery(String),\n    #[error(\"unable to find field call\")]\n    FieldCallNotFound,\n    #[error(\"Only __schema field is expected but found: {name:}\")]\n    OnlySchemaFieldExpected { name: String },\n    #[error(\"introspection query failed: {0}\")]\n    IntrospactionQueryError(#[from] crate::introspection::Error),\n    #[error(\"unable to serialize to json: {0}\")]\n    SerializeJson(#[from] serde_json::Error),\n}\nimpl TraceableError for Error {\n    fn visibility(&self) -> ErrorVisibility {\n        ErrorVisibility::User\n    }\n}\n\n/// Generate GraphQL schema for a given namespace\npub fn build_namespace_schema<\n    S: crate::schema::SchemaContext,\n    NSGet: crate::schema::NamespacedGetter<S>,","sourceCodeStart":1,"sourceCodeEnd":35,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/graphql/lang-graphql/src/generate_graphql_schema.rs#L1-L35","documentation":"While executing introspection the engine could not locate the expected field call node in the normalized AST. The introspection executor walks the normalized query to find the __schema field call; its absence violates an internal assumption.","triggerScenarios":"Executing introspection where the normalized AST lacks the expected top-level field call; internal AST shape changes between engine versions.","commonSituations":"Version skew in custom builds; forks that alter normalization output shape.","solutions":["Rebuild with matched engine/lang-graphql versions","Report upstream as an internal invariant violation","Avoid custom introspection handling that mutates the normalized AST"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Internal invariant: retry; report upstream if reproducible","preventionTips":["Use matching engine versions","Don't intercept/modify introspection requests in middleware"],"tags":["graphql","introspection","internal"],"backgroundTag":"introspection-field-call-not-found","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}