deepseek-ai/deepseek-harness · error · Error

Export failed: HTTP ${response.status}${detail === '' ? '' :

Error message

Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}

What it means

Error "Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/session-query/session-log-export/src/client/controller.ts:120

   * @returns after every active operation settles.
   */
  async dispose(): Promise<void> {
    this.disposed = true
    const active = [...this.active.values()]
    for (const operation of active) operation.abort.abort()
    await Promise.allSettled(active.map(operation => operation.done))
  }

  private async run(sessionId: SessionId, signal: AbortSignal): Promise<void> {
    this.publish(sessionId, { open: true, status: 'downloading', error: null })
    try {
      const url = new URL('/api/session.export', hostBase())
      url.searchParams.set('sessionId', sessionId)
      url.searchParams.set('includeDescendants', 'true')
      const response = await this.fetcher(url, { method: 'HEAD', signal })
      if (!response.ok) {
        const detail = await response.text().catch(() => '')
        throw new Error(`Export failed: HTTP ${response.status}${detail === '' ? '' : ` ${detail}`}`)
      }
      this.save(url.toString(), sessionLogZipFilename(sessionId))
      const open = this.store.getSnapshot().bySession[String(sessionId)]?.open ?? true
      this.publish(sessionId, { open, status: 'success', error: null })
    } catch (error: unknown) {
      if (signal.aborted) return
      const open = this.store.getSnapshot().bySession[String(sessionId)]?.open ?? true
      this.publish(sessionId, { open, status: 'error', error: messageOf(error) })
    }
  }

  private publish(sessionId: SessionId, entry: SessionLogDownloadEntry): void {
    this.store.update((state) => {
      state.bySession = { ...state.bySession, [String(sessionId)]: entry }
    })
  }
}

View on GitHub (pinned to b150a551b8)

Solutions

  1. Read the HTTP status and detail; fix authentication, identifiers, or payload per the API error and retry.

When it happens

Trigger: Thrown at packages/session-query/session-log-export/src/client/controller.ts:120 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/de518f1ee627dbf6. Report an issue: GitHub.