claude-code - 💡(How to fix) Fix [Bug] File path validation fails for non-ASCII characters in archived report paths [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47170Fetched 2026-04-13 05:39:35
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: haiku"},"request_id":"req_011CZzAdZ2ecrHYQQPMrwXsM"}\n at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n at async xE8 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1503:12284)\n at async HiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:9193)\n at async XiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8030:12327)\n at async file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8150\n at async XK7 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:2519)","timestamp":"2026-04-12T16:08:48.833Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-12T16:10:12.337Z"},{"error":"Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: haiku"},"request_id":"req_011CZzAokXUcmFLNSQwviHUR"}\n at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n at async xE8 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1503:12284)\n at async HiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:9193)\n at async XiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8030:12327)\n at async file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8150\n at async XK7 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:2519)","timestamp":"2026-04-12T16:11:07.136Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-12T16:13:26.123Z"},{"error":"Error: 404 {"type":"error","error":{"type":"not_found_error","message":"model: haiku"},"request_id":"req_011CZzB5JgfdoQEy3Qk7h5yc"}\n at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n at async xE8 …

Code Example

[{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: haiku\"},\"request_id\":\"req_011CZzAdZ2ecrHYQQPMrwXsM\"}\n    at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n    at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n    at async xE8 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1503:12284)\n    at async HiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:9193)\n    at async XiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8030:12327)\n    at async file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8150\n    at async XK7 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:2519)","timestamp":"2026-04-12T16:08:48.833Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:518:28)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n    at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-12T16:10:12.337Z"},{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: haiku\"},\"request_id\":\"req_011CZzAokXUcmFLNSQwviHUR\"}\n    at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n    at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n    at async xE8 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1503:12284)\n    at async HiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:9193)\n    at async XiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8030:12327)\n    at async file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8150\n    at async XK7 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:2519)","timestamp":"2026-04-12T16:11:07.136Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:518:28)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n    at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-12T16:13:26.123Z"},{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: haiku\"},\"request_id\":\"req_011CZzB5JgfdoQEy3Qk7h5yc\"}\n    at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n    at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n    at async xE8 …
RAW_BUFFERClick to expand / collapse

Bug Description 驗證報告 — /tmp/archived-changes-full-4dim-report.md 非check格式+四維度,且故意用中文寫,錯誤已打三次

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.97
  • Feedback ID: 51ce9859-28f5-4bb1-8996-8bbda6bc741f

Errors

[{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: haiku\"},\"request_id\":\"req_011CZzAdZ2ecrHYQQPMrwXsM\"}\n    at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n    at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n    at async xE8 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1503:12284)\n    at async HiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:9193)\n    at async XiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8030:12327)\n    at async file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8150\n    at async XK7 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:2519)","timestamp":"2026-04-12T16:08:48.833Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:518:28)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n    at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-12T16:10:12.337Z"},{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: haiku\"},\"request_id\":\"req_011CZzAokXUcmFLNSQwviHUR\"}\n    at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n    at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n    at async xE8 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1503:12284)\n    at async HiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:9193)\n    at async XiK (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8030:12327)\n    at async file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8150\n    at async XK7 (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4567:2519)","timestamp":"2026-04-12T16:11:07.136Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:518:28)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n    at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-12T16:13:26.123Z"},{"error":"Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: haiku\"},\"request_id\":\"req_011CZzB5JgfdoQEy3Qk7h5yc\"}\n    at dq.generate (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019)\n    at ML.makeStatusError (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:1652)\n    at ML.makeRequest (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:4928)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async HiK.xE8.model (file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8025:8654)\n    at async xE8 …

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely due to a "not_found_error" with the "haiku" model, and increasing the stdout maxBuffer length or checking the model's availability may help resolve the issue.

Guidance

  • Check the availability of the "haiku" model and ensure it is properly configured.
  • Increase the stdout maxBuffer length to prevent the "ERR_CHILD_PROCESS_STDIO_MAXBUFFER" error.
  • Verify that the request IDs ("req_011CZzAdZ2ecrHYQQPMrwXsM", etc.) are valid and not causing any issues.
  • Review the code at the specified file paths (e.g., "file:///Users/albert-ey/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:52019") to ensure correct error handling.

Example

No specific code example can be provided without more context, but increasing the maxBuffer length can be done by setting the maxBuffer option when spawning a child process, for example:

const childProcess = require('child_process');

const process = childProcess.spawn('command', {
  stdio: 'pipe',
  maxBuffer: 1024 * 1024 * 10, // increase maxBuffer length
});

Notes

The issue content was truncated, so some details may be missing. Additionally, the "haiku" model's availability and configuration are unknown, which may be the root cause of the issue.

Recommendation

Apply a workaround by increasing the stdout maxBuffer length and verifying the "haiku" model's availability, as the root cause is likely related to the model's configuration or the maxBuffer length.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] File path validation fails for non-ASCII characters in archived report paths [1 comments, 2 participants]