deepseek-ai/deepseek-harness · error · WebError
WEB_ABORTED
WEB_ABORTED
Error message
DeepSeek search aborted
What it means
Error "DeepSeek search aborted" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/web/web-search-deepseek/src/provider.ts:239
try {
response = await fetch(endpoint, {
method: 'POST',
redirect: 'error',
headers: {
// Official DeepSeek expects `x-api-key`; an Anthropic-compatible proxy
// may expect `Authorization: Bearer` — send both so either resolves.
'x-api-key': apiKey,
'authorization': `Bearer ${apiKey}`,
'anthropic-version': options.apiVersion,
'content-type': 'application/json',
'accept': 'application/json',
'user-agent': USER_AGENT,
},
body: JSON.stringify(body),
...signal !== undefined ? { signal } : {},
})
} catch (error: unknown) {
if (signal?.aborted === true || isAbortError(error)) throw searchAborted(signal, error)
throw new WebError(`DeepSeek search request failed: ${String(error)}`, 'WEB_PROVIDER_ERROR', { cause: error })
}
if (!response.ok) {
const status = response.status
let message = `DeepSeek API error (HTTP ${status})`
try {
const parsed = await response.json() as AnthropicError
const detail = typeof parsed.error === 'string' ? parsed.error : parsed.error?.message ?? parsed.message
if (detail !== undefined && detail.length > 0) message = detail
} catch (error: unknown) {
// An abort fired mid-body must surface as WEB_ABORTED, not be swallowed
// into a generic HTTP-error message — cancellation is not a provider
// error (the seam's cancellation contract).
if (signal?.aborted === true || isAbortError(error)) throw searchAborted(signal, error)
// Otherwise: the HTTP status is already captured in `message` above; a
// malformed/non-JSON error body (normal for gateway 5xx/429s) can only
// cost a richer provider message, never the real error.View on GitHub (pinned to b150a551b8)
Solutions
- Retry the search; aborts come from cancellation or timeouts.
When it happens
Trigger: Thrown at packages/web/web-search-deepseek/src/provider.ts:239 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/35ba88a4a3f19ef9.
Report an issue: GitHub.