API 500 Internal Server Error in Claude Code Generation Endpoint
Resolved 💬 2 comments Opened Jul 8, 2025 by cvchelles Closed Jul 8, 2025
Bug Description
erro 500 api claude code
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.43
- Feedback ID: f6171339-fb25-4de7-a6e8-e2e27a87e462
Errors
[{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:448:20)\n at Object.readFileSync (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:581:728)\n at NcA (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:10473)\n at Object.call (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1423:4861)\n at call.next (<anonymous>)\n at hq6 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:11470)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Jz1 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:8191)\n at async Gz1 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1913:775)\n at async gq6 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1933:7335)","timestamp":"2025-07-07T22:37:26.283Z"},{"error":"Error: Request was aborted.\n at Ae._createMessage (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1325:7931)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-08T00:07:56.545Z"},{"error":"Error: Request was aborted.\n at bq.makeRequest (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:3838)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-08T00:10:25.519Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"}}\n at C6.generate (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12815)\n at bq.makeStatusError (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2100)\n at bq.makeRequest (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async jA1.showErrors (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:23044)\n at async jA1 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:12633)\n at async lR2 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:22894)\n at async file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:18023\n at async G0A (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:5121)\n at async Xc (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:17993)","timestamp":"2025-07-08T00:57:43.826Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"}}\n at C6.generate (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12815)\n at bq.makeStatusError (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2100)\n at bq.makeRequest (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async jA1.showErrors (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:23044)\n at async jA1 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:12633)\n at async lR2 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:22894)\n at async file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:18023\n at async G0A (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:5121)\n at async Xc (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:17993)","timestamp":"2025-07-08T00:58:12.250Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"}}\n at C6.generate (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:12815)\n at bq.makeStatusError (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:2100)\n at bq.makeRequest (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1334:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async jA1.showErrors (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:23044)\n at async jA1 (file:///root/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1703:12633)\n at async lR2 (file:///root/.npm-global/li
Note: Error logs were truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗