[Bug] Anthropic API Error: Request exceeds maximum size (HTTP 413)
<img width="1748" height="1002" alt="Image" src="https://github.com/user-attachments/assets/b1d8b7af-c81e-4f56-a586-7e59334cf3de" />
Bug Description
I'm experiencing a persistent API error that prevents me from using the application. Every time I attempt to execute commands or access certain features, I receive an HTTP 413 error with the message "Request exceeds the maximum size". This occurs consistently across multiple commands including /bashes, /context, /login, and when working with the advertisement management (/ilan-yonetimi) page. Specifically, the error appears when: (1) trying to configure the "İlan No" column to appear in the columns after the ID field on the advertisement management page, (2) attempting to make the "İlan No" button clickable to navigate to the advertisement detail page, (3) trying to display specific data fields on the advertisement detail page (including making the Sahibinden URL appear at the top and be clickable), and (4) when running the /context command. The application is using the Default model (Sonnet 4.5) in the project directory /Documents/startup/emlaksky. Despite multiple attempts, the request size limit is being exceeded and operations cannot be completed. The expected behavior would be for these commands and features to execute successfully without hitting size limitations. This appears to be a systematic issue rather than an isolated incident, as it affects multiple different operations consistently. I've attached a screenshot showing the error messages in the terminal interface.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.0.27
- Feedback ID:
Errors
[{"error":"Error: Could not load the \"sharp\" module using the darwin-arm64 runtime\nPossible solutions:\n- Ensure optional dependencies can be installed:\n npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n npm install --os=darwin --cpu=arm64 sharp\n- Consult the installation documentation:\n See https://sharp.pixelplumbing.com/install\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:202:36806\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:8:402\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:85\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:8:402\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:79791\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:8:402\n at file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:80332\n at async jAA (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:80294)\n at async YcA (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:3688)","timestamp":"2025-10-26T18:20:39.247Z"},{"error":"TypeError: (I.default || I) is not a function\n at jAA (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:80358)\n at async TVQ (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:5084)","timestamp":"2025-10-26T18:20:39.266Z"},{"error":"Error: 413 {\"error\":{\"type\":\"request_too_large\",\"message\":\"Request exceeds the maximum size\"}}\n at D4.generate (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:83332)\n at uy.makeStatusError (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:2117)\n at uy.makeRequest (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:5330)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async qtA.model (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:18846)\n at async qtA (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2685:39781)\n at async vb2 (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:19014)\n at async file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:13007\n at async Bo1 (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:4492)\n at async m4A (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:12977)","timestamp":"2025-10-26T18:20:47.370Z"},{"error":"Error: 413 {\"error\":{\"type\":\"request_too_large\",\"message\":\"Request exceeds the maximum size\"}}\n at D4.generate (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:203:83332)\n at uy.makeStatusError (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:2117)\n at uy.makeRequest (file:///Users/xshuden/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:5
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗