Sometimes the message “Content is too big” appears in Firefox 94.0.1 (and in a dozen of older versions of Firefox) when an attempt to save changes on a page in Telegraph should really be successful (because a query to the method getPage explained at https://telegra.ph/api#getPage yields the result which is significantly smaller than the limit promised at https://telegra.ph/api#createPage or https://telegra.ph/api#editPage which is 64KB).
Two such cases are shown in the attached video file:
➊ I cannot add another picture on the page https://telegra.ph/Yuragi-sou-no-Yuuna-san-06-14 because the message “Content is too big” appears; however, the query “wget --output-document=NUL https://api.telegra.ph/getPage/Yuragi-sou-no-Yuuna-san-06-14?return_content=true” yields only 41981 bytes, and thus the JSON of the page's content should remain under 64KB even when another img tag is added. (This problem will force me to relocate the last part of the page to a new page in Telegraph, and thus this page won't be able to serve as an example for long. Only its current state is captured in the attached video file.)
➋ I cannot fix a typographical error on the page https://telegra.ph/Telegraph-pages-with-albums-of-stitched-anime-frames-11-10 because the message “Content is too big” appears when I save the results of a minor edit (such as replacing only one letter with another letter; that change is not expected to change the length of Unicode representation and hence the length of Telegraph's JSON of the content) and even if I try the “Publish” button IMMEDIATELY after the “Edit” button; however, the query “wget --output-document=NUL https://api.telegra.ph/getPage/Telegraph-pages-with-albums-of-stitched-anime-frames-11-10?return_content=true” yields only 60425 bytes, and thus the JSON of the page's content should remain under 64KB especially if the page is saved without editing. (This page will remain a suitable example of this problem until this problem is fixed.)
Suggestions:
① Telegram's developers should fix the counter of characters used by Telegraph and make it respect the 64 KB limit of JSON (even in the latest Firefox browsers, if the problem is browser-specific for some reason) and correspond to the results of getPage API meaningfully.
② Telegram's developers should consider implementing a visible counter of remaining characters on Telegraph pages (in edit mode) with the goal of making a CLI wget query no longer necessary.
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.