[BUG] Config accessed before allowed
Resolved 💬 13 comments Opened May 28, 2025 by f1sherman 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
This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗