URL Construction Error in Claude Code CLI Initialization
Bug Description
/init is analyzing your codebase…
⏺ I'll analyze this codebase and create a CLAUDE.md file to help future Claude instances work effectively with this
repository. Let me start by exploring the structure and understanding the key components.
⏺ Task(Analyze codebase structure)
⎿ Read 62 lines (ctrl+r to expand)
Write(CLAUDE.md)
+16 more tool uses
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Opened changes in Trae ⧉ │
│ Save file to continue… │
│ │
│ Do you want to make this edit to CLAUDE.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:394
triggerUncaughtException(err, true / fromPromise /);
^
Error: Failed to construct 'URL': Invalid URL
at Hl2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1247:14641)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async WF4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2615:11207)
at async J (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2615:9917)
Node.js v24.2.0. I get always error when i try to use the /init function.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.55
- Feedback ID: 4f88c843-07f0-4aa1-8367-33b651c5fa50
Errors
Note: Error logs were truncated.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗