zed-industries/zed · error
timed out after s while fetching
Error message
timed out after {}s while fetching {url} What it means
The with_timeout wrapper around the registry fetch elapsed before the request/response completed; the underlying future was cancelled and replaced by this timeout error naming the URL and the configured limit. Used for fetching the agent registry index and icon downloads, it fires on slow networks or an unresponsive host.
Solutions
- Check connectivity to the registry host and retry; the fetch is re-attempted on next use
- If on a slow link, consider a larger timeout configuration for registry fetches
- Verify no proxy is stalling the response body read
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/project/src/agent_registry_store.rs:561 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/2c29379fb95d8981.
Report an issue: GitHub.
Appendix: source
Thrown at crates/project/src/agent_registry_store.rs:567
let mut response = http_client
.get(url, AsyncBody::default(), true)
.await
.with_context(|| format!("requesting {url}"))?;
let status = response.status();
let mut body = Vec::new();
response
.body_mut()
.read_to_end(&mut body)
.await
.with_context(|| format!("reading response from {url}"))?;
Ok((status, body))
}
.with_timeout(timeout, executor)
.await
.map_err(|_| {
anyhow!(
"timed out after {}s while fetching {url}",
timeout.as_secs()
)
})?
}
fn resolve_icon_url(entry: &RegistryEntry) -> Option<String> {
let icon = entry.icon.as_ref()?;
if icon.starts_with("https://") || icon.starts_with("http://") {
return Some(icon.to_string());
}
let relative_icon = icon.trim_start_matches("./");
Some(format!(
"https://raw.githubusercontent.com/agentclientprotocol/registry/main/{}/{relative_icon}",
entry.id
))
}View on GitHub (pinned to 916fc2b8cb)