deepseek-ai/deepseek-harness · error · LlmError
TRANSPORT
TRANSPORT
Error message
DeepSeek Files API request to ${this.baseURL} failed What it means
Error "DeepSeek Files API request to ${this.baseURL} failed" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/llm/llm-deepseek/src/files-api.ts:154
constructor(options: FilesApiOptions) {
this.baseURL = options.baseURL.replace(/\/+$/u, '')
this.apiKey = options.apiKey
this.fetchImpl = options.fetch ?? globalThis.fetch
}
private async request(path: string, init: RequestInit, signal?: AbortSignal): Promise<Response> {
let response: Response
try {
const headers = new Headers(attributionHeaders())
headers.set('authorization', `Bearer ${this.apiKey}`)
response = await this.fetchImpl(`${this.baseURL}${path}`, {
...init,
headers,
...signal === undefined ? {} : { signal },
})
} catch (error: unknown) {
if (signal?.aborted) throw error
throw new LlmError(`DeepSeek Files API request to ${this.baseURL} failed`, 'TRANSPORT', { cause: error })
}
if (response.ok) return response
let parsed: unknown
try {
parsed = await response.json()
} catch {
// A status remains sufficient to report the provider failure.
}
const { message, detail } = providerErrorDetail(parsed)
throw new DeepSeekFilesError(
message ?? `DeepSeek Files API error (HTTP ${response.status})`,
response.status,
detail,
)
}
/**
* Upload one image with an explicit expiry.View on GitHub (pinned to b150a551b8)
Solutions
- Check the Files API baseURL and network connectivity, then retry.
When it happens
Trigger: Thrown at packages/llm/llm-deepseek/src/files-api.ts:154 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/629d1212be0bd896.
Report an issue: GitHub.