xai-org/grok-build · error

{operation} failed: {status} - {body}

Error message

{operation} failed: {status} - {body}

What it means

Error "{operation} failed: {status} - {body}" thrown in xai-org/grok-build.

Source

Thrown at crates/codegen/xai-grok-shell/src/remote/agent.rs:96

                crate::http::process_client_identifier(),
            )
            .header(
                crate::http::CLIENT_MODE_HEADER,
                crate::http::process_client_mode(),
            );

        Ok(xai_file_utils::trace_context::inject_trace_context_into_request(builder))
    }

    /// Check an HTTP response for errors, then deserialize the JSON body.
    async fn parse_response<T: DeserializeOwned>(
        response: reqwest::Response,
        operation: &str,
    ) -> Result<T> {
        if !response.status().is_success() {
            let status = response.status().as_u16();
            let body = response.text().await.unwrap_or_default();
            bail!("{operation} failed: {status} - {body}");
        }
        response
            .json()
            .await
            .with_context(|| format!("failed to parse {operation} response"))
    }

    /// Check an HTTP response for errors, discarding the body.
    async fn check_response(response: reqwest::Response, operation: &str) -> Result<()> {
        if !response.status().is_success() {
            let status = response.status().as_u16();
            let body = response.text().await.unwrap_or_default();
            bail!("{operation} failed: {status} - {body}");
        }
        Ok(())
    }

    /// Fork an existing sandbox session.

View on GitHub (pinned to bc7f02eddd)

When it happens

Trigger: Thrown at crates/codegen/xai-grok-shell/src/remote/agent.rs:96 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of xai-org/grok-build@bc7f02eddd (2026-08-31). Data as JSON: /api/errors/c0130fffd8ace8e8. Report an issue: GitHub.