From e0768c9613a3f5d74aa9710cc4c1e95a82a5160b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 08:08:57 +0000 Subject: [PATCH] Name both size limits in RequestTooLargeException's message 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 Claude-Session: https://claude.ai/code/session_01Udr9ePHq9JKa6ZtgjuRbi5 --- werk24/utils/exceptions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/werk24/utils/exceptions.py b/werk24/utils/exceptions.py index 6788a1aa..da57ed99 100644 --- a/werk24/utils/exceptions.py +++ b/werk24/utils/exceptions.py @@ -135,7 +135,9 @@ class RequestTooLargeException(TechreadException): cli_message_header: str = "Request Too Large" cli_message_body: str = ( - "The request size exceeds the maximum allowed size of 10MB.\n\n" + "The request size exceeds the maximum allowed size: 10 MiB for a " + "drawing sent with read_drawing, about 4.6 MB for a whole callback " + "request.\n\n" "For more information, visit:\nhttps://v2.docs.werk24.io" )