denoland/deno · error · TypeError
'Deno.AtomicOperation' is not a promise: did you forget to c
Error message
'Deno.AtomicOperation' is not a promise: did you forget to call 'commit()'
What it means
Error "'Deno.AtomicOperation' is not a promise: did you forget to call 'commit()'" thrown in denoland/deno.
Source
Thrown at ext/kv/01_db.ts:596
opts?.keysIfUndelivered ?? [],
opts?.backoffSchedule ?? null,
]);
return this;
}
async commit(): Promise<Deno.KvCommitResult | Deno.KvCommitError> {
const versionstamp = await doAtomicWriteInPlace(
this.#rid,
this.#checks,
this.#mutations,
this.#enqueues,
);
if (versionstamp === null) return { ok: false };
return { ok: true, versionstamp };
}
then() {
throw new TypeError(
"'Deno.AtomicOperation' is not a promise: did you forget to call 'commit()'",
);
}
[SymbolFor("Deno.privateCustomInspect")](inspect, inspectOptions) {
const operations = [];
// Format checks
for (let i = 0; i < this.#checks.length; ++i) {
const check = this.#checks[i];
const key = check[0];
const versionstamp = check[1];
const keyStr = inspect(key, inspectOptions);
const versionstampStr = versionstamp === null
? "null"
: `"${versionstamp}"`;
ArrayPrototypePush(
operations,View on GitHub (pinned to 89f33cbef2)
When it happens
Trigger: Thrown at ext/kv/01_db.ts:596 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16).
Data as JSON: /api/errors/aac24780b8655917.
Report an issue: GitHub.