{"record":{"id":"de518f1ee627dbf6","repo":"deepseek-ai/deepseek-harness","slug":"export-failed-http-response-status-detail","errorCode":null,"errorMessage":"Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}","messagePattern":"Export failed: HTTP (.+?)(.+?)`\\}","errorType":"http","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/session-query/session-log-export/src/client/controller.ts","lineNumber":120,"sourceCode":"   * @returns after every active operation settles.\n   */\n  async dispose(): Promise<void> {\n    this.disposed = true\n    const active = [...this.active.values()]\n    for (const operation of active) operation.abort.abort()\n    await Promise.allSettled(active.map(operation => operation.done))\n  }\n\n  private async run(sessionId: SessionId, signal: AbortSignal): Promise<void> {\n    this.publish(sessionId, { open: true, status: 'downloading', error: null })\n    try {\n      const url = new URL('/api/session.export', hostBase())\n      url.searchParams.set('sessionId', sessionId)\n      url.searchParams.set('includeDescendants', 'true')\n      const response = await this.fetcher(url, { method: 'HEAD', signal })\n      if (!response.ok) {\n        const detail = await response.text().catch(() => '')\n        throw new Error(`Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}`)\n      }\n      this.save(url.toString(), sessionLogZipFilename(sessionId))\n      const open = this.store.getSnapshot().bySession[String(sessionId)]?.open ?? true\n      this.publish(sessionId, { open, status: 'success', error: null })\n    } catch (error: unknown) {\n      if (signal.aborted) return\n      const open = this.store.getSnapshot().bySession[String(sessionId)]?.open ?? true\n      this.publish(sessionId, { open, status: 'error', error: messageOf(error) })\n    }\n  }\n\n  private publish(sessionId: SessionId, entry: SessionLogDownloadEntry): void {\n    this.store.update((state) => {\n      state.bySession = { ...state.bySession, [String(sessionId)]: entry }\n    })\n  }\n}\n","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/session-query/session-log-export/src/client/controller.ts#L102-L138","documentation":"Error \"Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/session-query/session-log-export/src/client/controller.ts:120 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the HTTP status and detail; fix authentication, identifiers, or payload per the API error and 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"}