zed-industries/zed · error
{error.message}
Error message
{error.message} What it means
request_with received a JSON-RPC error response from the context (MCP) server; the message is the error message supplied by the server itself. It means the server processed the request and explicitly returned an error — the wrapped {error.message} is authoritative.
Solutions
- Inspect the server's error message and code to identify the server-side failure
- Verify request parameters match the server's expectations
- Restart or reconfigure the context server if the error persists
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at crates/context_server/src/client.rs:456 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/095ae1333e4f22aa.
Report an issue: GitHub.
Appendix: source
Thrown at crates/context_server/src/client.rs:456
let mut cancel_fut = pin!(
match cancel_rx {
Some(rx) => future::Either::Left(async {
rx.await.log_err();
}),
None => future::Either::Right(future::pending()),
}
.fuse()
);
select! {
response = rx.fuse() => {
let elapsed = started.elapsed();
log::trace!("took {elapsed:?} to receive response to {method:?} id {id}");
match response {
Ok(response) => {
let parsed: AnyResponse = serde_json::from_str(&response)?;
if let Some(error) = parsed.error {
Err(anyhow!(error.message))
} else if let Some(result) = parsed.result {
Ok(serde_json::from_str(result.get())?)
} else {
anyhow::bail!("Invalid response: no result or error");
}
}
Err(_canceled) => {
if let Some(err) = self.last_transport_error.lock().take() {
return Err(err);
}
anyhow::bail!("cancelled")
}
}
}
_ = cancel_fut => {
self.notify(
Cancelled::METHOD,
ClientNotification::Cancelled(CancelledParams {View on GitHub (pinned to f4178619ac)