deepseek-ai/deepseek-harness · error · AttachmentError
ATTACHMENT_WRITE_FAILED
ATTACHMENT_WRITE_FAILED
Error message
Unable to persist image attachment.
What it means
Error "Unable to persist image attachment." thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/attachment/attachment-local/src/store.ts:239
// that writer reaches its own durability boundary.
await syncDirectory(bucket)
await syncDirectory(join(root, 'objects'))
await unlink(temporary)
} catch (error) {
/* v8 ignore next -- A descriptor can remain open only when the underlying write/sync/close operation fails. */
if (handle !== undefined) await handle.close().catch(
/* v8 ignore next -- Close failure is superseded by the storage operation that entered cleanup. */
() => {},
)
await unlink(temporary).catch(
/* v8 ignore next -- The callback requires a second independent staging-unlink failure. */
(cleanupError: unknown) => {
/* v8 ignore next -- Cleanup is best-effort only for a staging file already removed by a failed operation. */
if (!(cleanupError instanceof Error && 'code' in cleanupError && cleanupError.code === 'ENOENT')) throw cleanupError
},
)
if (error instanceof AttachmentError) throw error
throw new AttachmentError('Unable to persist image attachment.', 'ATTACHMENT_WRITE_FAILED', { cause: error })
}
return prepared.ref
}
/**
* Decode and normalize one image once, then publish the prepared object.
* @param root - absolute `DSH_HOME/attachments/v1` root.
* @param input - submitted encoded bytes and declared media type.
* @param limits - resolved source admission policy.
* @param policy - resolved normalization policy.
* @returns durable content-addressed normalized image reference.
*/
export async function saveImageFile(
root: string,
input: SaveImageAttachment,
limits: ImageAttachmentLimits,
policy: NormalizationPolicy,
): Promise<ImageAttachmentRef> {View on GitHub (pinned to b150a551b8)
Solutions
- Check storage permissions and free disk space, then retry persisting the image.
When it happens
Trigger: Thrown at packages/attachment/attachment-local/src/store.ts:239 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/2cd354ec759f7baa.
Report an issue: GitHub.