Skip to content

Name both size limits in RequestTooLargeException's message - #608

Merged
jmtts merged 1 commit into
mainfrom
claude/wonderful-allen-wqqzoh
Oct 6, 2026
Merged

jmtts merged 1 commit into
mainfrom
claude/wonderful-allen-wqqzoh

Conversation

@werk24

@werk24 werk24 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

RequestTooLargeException said "maximum allowed size of 10MB". It is also the parent of the callback exceptions, whose limit is about 4.6 MB for the whole request. The message now names both: 10 MiB for a drawing sent with read_drawing, about 4.6 MB for a callback request. The message text is the only change; no model or behaviour changes.

Checks run

pytest -m "not callback_e2e": 1023 passed, 4 skipped (the live tests, no credentials here).

Questions for the owner

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Udr9ePHq9JKa6ZtgjuRbi5


Generated by Claude Code

The message said the limit is 10MB, but RequestTooLargeException is also
the parent of the callback exceptions, whose limit is about 4.6 MB for the
whole request. It now names both: 10 MiB for a drawing sent with
read_drawing, about 4.6 MB for a callback request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Udr9ePHq9JKa6ZtgjuRbi5
Copilot AI balanced review requested due to automatic review settings October 6, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The message accurately reflects the existing limits without changing behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Updates the generic oversized-request message to distinguish drawing and callback size limits.

Changes:

  • Names the 10 MiB drawing limit.
  • Names the approximate 4.6 MB callback-request limit.
File Description
werk24/​utils/​exceptions.py Clarifies RequestTooLargeException guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jmtts
jmtts merged commit 7e4b109 into main Oct 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants