Promise Timeout Error in Claude Code CLI Module

Resolved 💬 21 comments Opened Jun 25, 2025 by m-marinucci Closed Aug 21, 2025

Bug Description
node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^

Error: Timeout waiting after 1000ms
at wC2 (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1368:11718)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async nF5 (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1929:11635)
at async F (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1929:10489)

Node.js v23.9.0
max@Massimilianos-MacBook-Pro video-analyzer %

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.34
  • Feedback ID: af4311f5-d58b-4afc-a93b-60f9dc01f509

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at NZ (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at GX (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at mS (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at T9 (file:///Users/max/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-25T22:34:10.741Z"}]

View original on GitHub ↗

21 Comments

JCBsystem · 1 year ago

i get this to . with just a simple update the readme prompt . for me it might be relates to the file.
becuse CC can edit other files.
The error happens right away , there is no time to click "Yes"

---------------------------------------------------------------------

you keep crasing when editing the root readme . try to open it and add just any char

⏺ I'll help you test editing the root README file. Let me first check if there's a README file in the root directory.

⏺ List(.)
⎿ Listed 732 paths (ctrl+r to expand)

⏺ I don't see a README file in the root directory. Let me create one and add a character to test if it causes a crash.

⏺ Write(README.md)

╭───────────────────────────────────────────────────────────────────╮
│ │
│ Opened changes in Cursor ⧉ │
│ Save file to continue… │
│ │
│ Do you want to make this edit to README.md? │
│ ❯ 1. Yes │
│ 2. Yes, and don't ask again this session (shift+tab) │
│ 3. No, and tell Claude what to do differently (esc) │
│ │
╰───────────────────────────────────────────────────────────────────╯

node:internal/process/promises:391
triggerUncaughtException(err, true / fromPromise /);
^

Error: Timeout waiting after 1000ms
at fz2 (file:///Users/mrb/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1363:11606)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Iz5 (file:///Users/mrb/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:11636)
at async F (file:///Users/mrb/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:10490)

Node.js v20.19.0

masterkods · 1 year ago

I have the similar issue. Keep getting when claude code tries to create and save a file.

Env:

VSCode, remote devcontainer

cat /etc/os-release

PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu

claude --version

1.0.35 (Claude Code)

Error:

● Write(audio/notebooks/audio_lab.ipynb)
╭───────────────────────────────────────────────╮
│ │
│ Opened changes in Visual Studio Code ⧉ │
│ Save file to continue… │
│ Do you want to make this edit to audio_lab.ipynb? │
│ ❯ 1. Yes │
│ 2. Yes, and don't ask again this session (shift+tab) │
│ 3. No, and tell Claude what to do differently (esc) │
╰───────────────────────────────────────────────╯
node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^

Error: Timeout waiting after 1000ms
at fz2 (file:///home/ubuntu/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1363:11606)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Iz5 (file:///home/ubuntu/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:11636)
at async F (file:///home/ubuntu/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:10490)

Node.js v22.16.0

masterkods · 1 year ago

I have faced the same issue with my Mac also. I had to turned off the ide integration to be able to continue to work. It seems it has something to do with VSCode integration.

Jenosize · 1 year ago

I have the same issue with my Mac M1 with VS code

merlinr68 · 1 year ago

Same issue. VSCode and usually fails when updating a README

Orchid420 · 1 year ago

same issue.

saif-mazhar · 1 year ago

I found a workaround (making the file not empty) and potential root cause (attempting to update an empty file).

Steps to Reproduce

  1. I asked Claude Code to update an empty markdown file that I created.
  2. I got the error below
  3. I added one line to the file so that it was no longer empty
  4. Repeated the same instructions
  5. Claude Code updated the file with no issues.

I repeated this same workaround when it failed to run /init - I created CLAUDE.md and added content.

node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^

Error: Timeout waiting after 1000ms
at _w2 (file:///Users/saif/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1378:12840)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async fw5 (file:///Users/saif/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1953:11636)
at async F (file:///Users/saif/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1953:10490)

Node.js v23.11.0

sokeroner · 1 year ago

I have the same issue when running /init

Claude Code Status v1.0.40

Cursor details (MacOS) :
Version : 1.1.7
Validation : 1.96.2
Date : 7111807980fa9c93aedd455ffa44b682c0dc1350
Electron : 2025-07-01T07:26:02.358Z
ElectronBuildId : 34.5.1
Chromium : undefined
Node.js : 132.0.6834.210
V8 : 20.19.0
Système d’exploitation : 13.2.152.41-electron.0

⚠️ Note that this works perfectly when I use VS Code

VS Code details (MacOS) :
Version : 1.101.2 (Universal)
Validation : 2901c5ac6db8a986a5666c3af51ff804d05af0d4
Date : 2025-06-24T20:27:15.391Z
Electron : 35.5.1
ElectronBuildId : 11727614
Chromium : 134.0.6998.205
Node.js : 22.15.1
V8 : 13.4.114.21-electron.0
Système d’exploitation : Darwin arm64 24.5.0

EveGosselin · 1 year ago

same thing here when CC creates a file and I want to save it in my directory, I don't have time to say yes to his question that I have this error coming.

node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^

Error: Timeout waiting after 1000ms
at zN2

daniel-peinado · 1 year ago

Same here. Please advice.

sokeroner · 1 year ago

Try disabling any extensions or settings that might affect how the files are displayed (Markdown, SVG, etc.).
That worked for me!

https://github.com/anthropics/claude-code/issues/3352#issuecomment-3066746091

tkandr · 1 year ago

And then they tell me that I'm reaching the model limits because the tool has failed to write CLAUDE.md 3 times in a row and wasted tokens :)

noah-jacksonn · 1 year ago

same here

DaneHou · 12 months ago

same here

pdwhoward · 12 months ago

same bug

florian-moyen · 12 months ago

Same with CC in Cursor. Need to disable the extensions

mikermcconnell · 12 months ago
Same with CC in Cursor. Need to disable the extensions

This worked for me

chenkuochou · 12 months ago

diable any md related extension in vscode works fine

github-actions[bot] · 11 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3293
  2. https://github.com/anthropics/claude-code/issues/3973
  3. https://github.com/anthropics/claude-code/issues/2489

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] · 10 months ago

This issue has been automatically closed as a duplicate of #3293.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] · 10 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.