{"record":{"id":"629d1212be0bd896","repo":"deepseek-ai/deepseek-harness","slug":"transport-629d12","errorCode":"TRANSPORT","errorMessage":"DeepSeek Files API request to ${this.baseURL} failed","messagePattern":"DeepSeek Files API request to (.+?) failed","errorType":"exception","errorClass":"LlmError","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/files-api.ts","lineNumber":154,"sourceCode":"  constructor(options: FilesApiOptions) {\n    this.baseURL = options.baseURL.replace(/\\/+$/u, '')\n    this.apiKey = options.apiKey\n    this.fetchImpl = options.fetch ?? globalThis.fetch\n  }\n\n  private async request(path: string, init: RequestInit, signal?: AbortSignal): Promise<Response> {\n    let response: Response\n    try {\n      const headers = new Headers(attributionHeaders())\n      headers.set('authorization', `Bearer ${this.apiKey}`)\n      response = await this.fetchImpl(`${this.baseURL}${path}`, {\n        ...init,\n        headers,\n        ...signal === undefined ? {} : { signal },\n      })\n    } catch (error: unknown) {\n      if (signal?.aborted) throw error\n      throw new LlmError(`DeepSeek Files API request to ${this.baseURL} failed`, 'TRANSPORT', { cause: error })\n    }\n    if (response.ok) return response\n    let parsed: unknown\n    try {\n      parsed = await response.json()\n    } catch {\n      // A status remains sufficient to report the provider failure.\n    }\n    const { message, detail } = providerErrorDetail(parsed)\n    throw new DeepSeekFilesError(\n      message ?? `DeepSeek Files API error (HTTP ${response.status})`,\n      response.status,\n      detail,\n    )\n  }\n\n  /**\n   * Upload one image with an explicit expiry.","sourceCodeStart":136,"sourceCodeEnd":172,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/files-api.ts#L136-L172","documentation":"Error \"DeepSeek Files API request to ${this.baseURL} failed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/files-api.ts:154 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the Files API baseURL and network connectivity, then retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}