[BUG] Error: Failed to construct 'URL': Invalid URL
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: Claude-code
- Claude CLI version: 10.0.35
- Operating System: macOS 15.5 sequoia
- Terminal: Terminal App
Bug Description
<!-- A clear and concise description of the bug -->
node:internal/process/promises:391
triggerUncaughtException(err, true / fromPromise /);
^
Error: Failed to construct 'URL': Invalid URL
at fz2 (file:///Users/andremichels/.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/andremichels/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:11636)
at async F (file:///Users/andremichels/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:10490)
Node.js v20.19.0
Steps to Reproduce
- Any command that creates a file, breaks
- <!-- Second step -->
- <!-- And so on... -->
Expected Behavior
<!-- What you expected to happen -->
Actual Behavior
<!-- What actually happened -->
Additional Context
node:internal/process/promises:391
triggerUncaughtException(err, true / fromPromise /);
^
Error: Failed to construct 'URL': Invalid URL
at fz2 (file:///Users/andremichels/.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/andremichels/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:11636)
at async F (file:///Users/andremichels/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1924:10490)
Node.js v20.19.0
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗