{"record":{"id":"437e22212ca1d4bf","repo":"FuelLabs/fuel-core","slug":"either-commit-block-id-or-commit-block-height","errorCode":null,"errorMessage":"Either `commit_block_id` or `commit_block_height` must be provided exclusively","messagePattern":"Either `commit_block_id` or `commit_block_height` must be provided exclusively","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/fuel-core/src/schema/message.rs","lineNumber":144,"sourceCode":"    }\n\n    // 256 * QUERY_COSTS.storage_read because the depth of the Merkle tree in the worst case is 256\n    #[graphql(complexity = \"256 * query_costs().storage_read + child_complexity\")]\n    async fn message_proof(\n        &self,\n        ctx: &Context<'_>,\n        transaction_id: TransactionId,\n        nonce: Nonce,\n        commit_block_id: Option<BlockId>,\n        commit_block_height: Option<U32>,\n    ) -> async_graphql::Result<MessageProof> {\n        let query = ctx.read_view()?;\n        let height = match (commit_block_id, commit_block_height) {\n            (Some(commit_block_id), None) => {\n                query.block_height(&commit_block_id.0.into())?\n            }\n            (None, Some(commit_block_height)) => commit_block_height.0.into(),\n            _ => Err(anyhow::anyhow!(\n                \"Either `commit_block_id` or `commit_block_height` must be provided exclusively\"\n            ))?,\n        };\n\n        let proof = crate::query::message_proof(\n            query.as_ref(),\n            transaction_id.into(),\n            nonce.into(),\n            height,\n        )?;\n\n        Ok(MessageProof(proof))\n    }\n\n    #[graphql(complexity = \"query_costs().storage_read + child_complexity\")]\n    async fn message_status(\n        &self,\n        ctx: &Context<'_>,","sourceCodeStart":126,"sourceCodeEnd":162,"githubUrl":"https://github.com/FuelLabs/fuel-core/blob/b9d4d170da3a31c9ace5f963d633b326348e0d42/crates/fuel-core/src/schema/message.rs#L126-L162","documentation":"Error \"Either `commit_block_id` or `commit_block_height` must be provided exclusively\" thrown in FuelLabs/fuel-core.","triggerScenarios":"Thrown at crates/fuel-core/src/schema/message.rs:144 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d4d170da3a31c9ace5f963d633b326348e0d42","analyzedAt":"2026-08-16T08:56:42.692Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}