deepseek-ai/deepseek-harness · error · FsError
FS_ABORTED
FS_ABORTED
Error message
${operation} aborted What it means
Cancellation guard assertNotAborted in the E2B filesystem adapter: the caller's AbortSignal was already aborted when the named operation started (or aborted mid-flight and a later check caught it). The adapter surfaces this as FsError code FS_ABORTED instead of leaking the raw DOMException.
Solutions
- Check signal.aborted before starting the operation
- Pass a non-aborted signal or none
- Retry with a fresh signal if the cancellation was spurious
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/e2b/fs-e2b/src/index.ts:35 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/788d3a63dda7796e.
Report an issue: GitHub.
Appendix: source
Thrown at packages/e2b/fs-e2b/src/index.ts:35
FsTarget,
FsWriteIntent,
FsWriteOutcome,
} from '@deepseek-ai/dsh-fs'
import {
CommandExitError,
e2bControlEnvs,
FileNotFoundError,
FileType,
quoteE2BShellArg,
} from '@deepseek-ai/dsh-e2b'
import type { EntryInfo, Sandbox } from '@deepseek-ai/dsh-e2b'
const VERSION_METADATA_KEY = 'dsh-version'
const BINARY_SAMPLE_BYTES = 8192
const BASE64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
function assertNotAborted(signal: AbortSignal | undefined, operation: string): void {
if (signal?.aborted === true) throw new FsError(`${operation} aborted`, 'FS_ABORTED')
}
function normalizeLineEndings(value: string): string {
return value.replaceAll('\r\n', '\n')
}
function detectsCrlf(value: string): boolean {
const sample = value.slice(0, 4096)
const crlf = sample.split('\r\n').length - 1
const lf = sample.split('\n').length - 1 - crlf
return crlf > lf
}
function restoreLineEndings(value: string, crlf: boolean): string {
return crlf ? normalizeLineEndings(value).replaceAll('\n', '\r\n') : value
}
function decodeText(bytes: Uint8Array, displayPath: string, binarySampleBytes: number): string {View on GitHub (pinned to b150a551b8)