xai-org/grok-build · error · acp::Error
Model is temporarily overloaded. Try again in a moment.
Error message
Model is temporarily overloaded. Try again in a moment.
What it means
Error "Model is temporarily overloaded. Try again in a moment." thrown in xai-org/grok-build.
Source
Thrown at crates/codegen/xai-grok-shell/src/sampling/error.rs:115
/// personal SuperGrok plan.
fn pushes_consumer_subscription_upsell(detail: &str) -> bool {
let d = detail.to_ascii_lowercase();
d.contains("grok.com/supergrok") || d.contains("upgrade to a grok subscription")
}
/// User-facing copy for capacity/overload failures (stream `overloaded_error`,
/// HTTP 529, proxy-wrapped 5xx). See [`SamplingError::is_overloaded`].
pub const OVERLOADED_USER_MESSAGE: &str = "Model is temporarily overloaded. Try again in a moment.";
/// Map a `SamplingError` to an ACP `Error` for client-facing responses.
/// This stays in xai-grok-shell because it depends on `agent_client_protocol::Error`.
pub(crate) fn map_sampling_err_to_acp(err: SamplingError) -> acp::Error {
use reqwest::StatusCode;
// Capacity/overload gets the same short copy on every surface. Message
// only, `data` deliberately unset: `Display` appends JSON-encoded `data`,
// and this string is meant for direct display.
if err.is_overloaded() {
return acp::Error::new(
acp::ErrorCode::InternalError.into(),
OVERLOADED_USER_MESSAGE,
);
}
match err {
SamplingError::Auth { message, .. } => acp::Error::auth_required().data(message),
SamplingError::InvalidConfiguration(msg) => acp::Error::invalid_params().data(msg),
SamplingError::Http(e) => {
acp::Error::internal_error().data(format!("http client init failed: {e}"))
}
SamplingError::Serialization(_) => acp::Error::invalid_params().data(err.to_string()),
SamplingError::Api {
status, message, ..
} => match status {
StatusCode::UNAUTHORIZED => acp::Error::auth_required().data(message),
// 403 Forbidden is NOT an auth error — the request was
// authenticated, but the action is not permitted (content-safety
// blocks, ZDR-gated operations, remote-settings-blocked users).View on GitHub (pinned to bc7f02eddd)
When it happens
Trigger: Thrown at crates/codegen/xai-grok-shell/src/sampling/error.rs:115 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/2bba12d33bd1ffa6.
Report an issue: GitHub.