Anthropic API Request Fails on Node.js 22 with 400 Bad Request
Resolved 💬 3 comments Opened Jul 29, 2025 by jmsegrev Closed Aug 15, 2025
Bug Description
On node 22 I always get the API Error: 400 from just writing the first prompt
Environment Info
- Platform: linux
- Terminal: tmux
- Version: 1.0.62
- Feedback ID: 2b7f6168-d15a-4997-88d6-7a694d697c03
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.77.custom.input_schema.properties: Property keys should match pattern '^[a-zA-Z0-9_.-]{1,64}$'\"}}\n at n4.generate (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:12488)\n at GP.makeStatusError (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:2101)\n at GP.makeRequest (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1334:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async OvB.bG1.showErrors (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14365)\n at async bG1 (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2368:5642)\n at async OvB (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:14216)\n at async file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9271\n at async hL0 (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:1690)\n at async re (file:///home/jmsegrev/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2907:9241)","timestamp":"2025-07-29T10:51:30.485Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗