[BUG] Config accessed before allowed
Status Fixed / completed
Maintainer reply None cached
Activity 13 comments · opened May 28, 2025 · closed Jun 3, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.4
- Operating System: macOS 15.5
- Terminal: iTerm2
Bug Description
When I start Claude Code, I get the following stack trace. Everything that I type in the editor gets the response Interrupted by user.
❯ claude [14:38:52]
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Config accessed before allowed.
at iP (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:13774)
at WA (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:13289)
at TT (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:15394)
at file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:36081
at Q (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:16887)
at v31 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:18142)
at g1 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:3247)
at i5 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:10000)
at jm9 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:307)
at BI (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:1006)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Config accessed before allowed.
at iP (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:13774)
at WA (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:13289)
at TT (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:15394)
at file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:36081
at Q (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:16887)
at v31 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:572:18142)
at g1 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:573:3247)
at i5 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:10000)
at jm9 (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:307)
at BI (file:///Users/brianjohn/.nodenv/versions/20.19.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:568:1006)
╭─────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /Users/brianjohn/projects/betterup-monolith │
╰─────────────────────────────────────────────────────╯
> hello?
⎿ Interrupted by user
Steps to Reproduce
- Start Claude
Expected Behavior
No errors and Claude responds to queries
Actual Behavior
Errors and Claude does not respond to queries
13 Comments
I downgraded to Claude Code 1.0.3 and it's working fine, appears to be something with the latest version 1.0.4.
Getting the same error.
In case anyone else has this issue, to downgrade and stay downgraded:
npm install -g @anthropic-ai/claude-code@1.0.3claude config set -g autoUpdaterStatus disabledI too am getting this error, starting only today on version 1.0.4.
The problem is, I allowed Claude to move itself into
~/.claude/local/claudeso I can't easily downgrade using npm (per @marcinja's suggestion).Having this error when I make any changes to the config, in my case I am working using Bedrock
For what it's worth, renaming my
~/.claude/settings.jsonto~/.claude/DISABLEDsettings.jsonallowed me to bypass this issue.Same here , but for 1.0.6 . I've downgraded for 1.0.3 , but Claude Code instantly re-updated to 1.0.6 .
@Arhmagos-Michael-BasaroS
claude config set -g autoUpdaterStatus disabledSeems that issue fixed , I am on v1.0.6 and today launched Claude Code without errors .
Upd: issue still persists .
I'm still seeing this error on version 1.0.6.
Seems to be fixed for me with
1.0.9Yep working for me on 1.0.9 as well. Going to close this out.
cd ~/.claude/local && npm update @anthropic-ai/claude-code
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.