claude-code - 💡(How to fix) Fix [Bug] Model generates unrequested code artifacts [1 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#48366Fetched 2026-04-16 07:02:15
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: This PDF has 23 pages, which is too many to read at once. Use the pages parameter to read specific page ranges (e.g., pages: "1-5"). Maximum 20 pages per request.\n at c$7 (/$bunfs/root/src/entrypoints/cli.js:4298:1399)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T15:58:58.995Z"},{"error":"Error: This PDF has 38 pages, which is too many to read at once. Use the pages parameter to read specific page ranges (e.g., pages: "1-5"). Maximum 20 pages per request.\n at c$7 (/$bunfs/root/src/entrypoints/cli.js:4298:1399)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T15:59:00.724Z"},{"error":"Error: Was there a typo in the url or port?\n at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async wC1 (/$bunfs/root/src/entrypoints/cli.js:1956:13999)\n at async Vl9 (/$bunfs/root/src/entrypoints/cli.js:1956:14538)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T21:50:20.352Z"},{"error":"AxiosError: Request failed with status code 401\n at hB (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async wC1 (/$bunfs/root/src/entrypoints/cli.js:1956:13999)\n at async Vl9 (/$bunfs/root/src/entrypoints/cli.js:1956:14538)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:44:52.014Z"}]

Code Example

[{"error":"Error: This PDF has 23 pages, which is too many to read at once. Use the pages parameter to read specific page ranges (e.g., pages: \"1-5\"). Maximum 20 pages per request.\n    at c$7 (/$bunfs/root/src/entrypoints/cli.js:4298:1399)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T15:58:58.995Z"},{"error":"Error: This PDF has 38 pages, which is too many to read at once. Use the pages parameter to read specific page ranges (e.g., pages: \"1-5\"). Maximum 20 pages per request.\n    at c$7 (/$bunfs/root/src/entrypoints/cli.js:4298:1399)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T15:59:00.724Z"},{"error":"Error: Was there a typo in the url or port?\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async wC1 (/$bunfs/root/src/entrypoints/cli.js:1956:13999)\n    at async Vl9 (/$bunfs/root/src/entrypoints/cli.js:1956:14538)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T21:50:20.352Z"},{"error":"AxiosError: Request failed with status code 401\n    at hB (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async wC1 (/$bunfs/root/src/entrypoints/cli.js:1956:13999)\n    at async Vl9 (/$bunfs/root/src/entrypoints/cli.js:1956:14538)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:44:52.014Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description THe model wrote code to generat a latex table that I never requested

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.92
  • Feedback ID: 44df87fb-0e39-46b7-9975-84c7f57323de

Errors

[{"error":"Error: This PDF has 23 pages, which is too many to read at once. Use the pages parameter to read specific page ranges (e.g., pages: \"1-5\"). Maximum 20 pages per request.\n    at c$7 (/$bunfs/root/src/entrypoints/cli.js:4298:1399)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T15:58:58.995Z"},{"error":"Error: This PDF has 38 pages, which is too many to read at once. Use the pages parameter to read specific page ranges (e.g., pages: \"1-5\"). Maximum 20 pages per request.\n    at c$7 (/$bunfs/root/src/entrypoints/cli.js:4298:1399)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T15:59:00.724Z"},{"error":"Error: Was there a typo in the url or port?\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async wC1 (/$bunfs/root/src/entrypoints/cli.js:1956:13999)\n    at async Vl9 (/$bunfs/root/src/entrypoints/cli.js:1956:14538)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T21:50:20.352Z"},{"error":"AxiosError: Request failed with status code 401\n    at hB (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async wC1 (/$bunfs/root/src/entrypoints/cli.js:1956:13999)\n    at async Vl9 (/$bunfs/root/src/entrypoints/cli.js:1956:14538)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:44:52.014Z"}]

extent analysis

TL;DR

Use the pages parameter to specify a page range when reading PDFs to avoid errors caused by excessive page numbers.

Guidance

  • The errors indicate that the PDFs being read have too many pages, exceeding the maximum of 20 pages per request. To fix this, use the pages parameter to specify a page range, for example, pages: "1-5".
  • Verify that the pages parameter is correctly implemented by checking the request parameters and ensuring that the page range is within the allowed limit.
  • If authentication issues occur, as indicated by the 401 status code error, ensure that the correct credentials are being used and that authentication is properly configured.
  • Review the error messages to identify any other potential issues, such as typos in URLs or ports, and address them accordingly.

Example

No code snippet is provided as the issue does not contain sufficient information to create a specific example.

Notes

The provided errors suggest that there are multiple issues at play, including excessive page numbers and authentication problems. Addressing these issues individually will be necessary to resolve the problem.

Recommendation

Apply workaround: Use the pages parameter to specify a page range when reading PDFs to avoid errors caused by excessive page numbers. This will help mitigate the issue, but a more comprehensive solution may be required to address the underlying problems.

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] Model generates unrequested code artifacts [1 participants]