{"record":{"id":"aac24780b8655917","repo":"denoland/deno","slug":"deno-atomicoperation-is-not-a-promise-did-you-f","errorCode":null,"errorMessage":"'Deno.AtomicOperation' is not a promise: did you forget to call 'commit()'","messagePattern":"'Deno\\.AtomicOperation' is not a promise: did you forget to call 'commit\\(\\)'","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"ext/kv/01_db.ts","lineNumber":596,"sourceCode":"      opts?.keysIfUndelivered ?? [],\n      opts?.backoffSchedule ?? null,\n    ]);\n    return this;\n  }\n\n  async commit(): Promise<Deno.KvCommitResult | Deno.KvCommitError> {\n    const versionstamp = await doAtomicWriteInPlace(\n      this.#rid,\n      this.#checks,\n      this.#mutations,\n      this.#enqueues,\n    );\n    if (versionstamp === null) return { ok: false };\n    return { ok: true, versionstamp };\n  }\n\n  then() {\n    throw new TypeError(\n      \"'Deno.AtomicOperation' is not a promise: did you forget to call 'commit()'\",\n    );\n  }\n\n  [SymbolFor(\"Deno.privateCustomInspect\")](inspect, inspectOptions) {\n    const operations = [];\n\n    // Format checks\n    for (let i = 0; i < this.#checks.length; ++i) {\n      const check = this.#checks[i];\n      const key = check[0];\n      const versionstamp = check[1];\n      const keyStr = inspect(key, inspectOptions);\n      const versionstampStr = versionstamp === null\n        ? \"null\"\n        : `\"${versionstamp}\"`;\n      ArrayPrototypePush(\n        operations,","sourceCodeStart":578,"sourceCodeEnd":614,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/ext/kv/01_db.ts#L578-L614","documentation":"Error \"'Deno.AtomicOperation' is not a promise: did you forget to call 'commit()'\" thrown in denoland/deno.","triggerScenarios":"Thrown at ext/kv/01_db.ts:596 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}