Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Post body too long but not too long?

Post

Post body too long but not too long? [duplicate]

+3
−0

Closed as duplicate by ArtOfCode‭ on Aug 1, 2026 at 21:14

This question has been addressed elsewhere. See: False positive for 30,000 character limit

This question was closed; new answers can no longer be added. Users with the Vote on Holds ability may vote to reopen this question if it has been improved or closed incorrectly.

I got the following error message about my post being too long while trying to post a code review request. The error message says post bodies have a 30,000 character maximum but the edit counter shows the body only having 29,302 characters. Why was my post rejected?

Screenshot of error message:

Error message:  Body is too long

Update:

A Codidact patch was applied to attempt to fix this problem but I still can’t post my review request. Now I get a slightly different error message:

Body markdown is too long (maximum is 30000 characters)

NOTE: The markdown of my post was less than 30,000 characters.

2nd Update:

Another patch has been applied and everything seems fine to me. Thanks to all involved!

History

1 comment thread

Known issue (15 comments)
Known issue
trichoplax‭ wrote about 2 months ago

It seems likely that the HTML generated from the Markdown is longer than 30,000 characters, even though the Markdown you've entered is shorter. There's an existing issue for this. Ideally when this is fixed the limit will apply only to the Markdown, as you would expect.

trichoplax‭ wrote about 2 months ago

I don't know of a workaround other than finding a way to remove enough characters to bring the HTML under 30,000 characters. Without knowing how long the HTML is, this could require losing anything from 1 character to a few thousand (my example linked from the issue hit this problem somewhere above 27,000 characters, but that might have been an extreme example with a lot of Markdown elements that dramatically increase in size.

trichoplax‭ wrote about 2 months ago

You might be able to estimate how many characters the HTML takes by viewing it in the developer window and then pasting it into a character counter (such as a new post). I'd save your draft post in a text file first just in case.

Obviously you shouldn't have to do this, so I'm just mentioning it as the best workaround I can think of until this is fixed.

Monica Cellio‭ wrote about 2 months ago

Thanks to trichoplax‭'s fast work we have a fix for this in process (with possibly a better fix later). Save your post draft if you haven't already; you should be able to post it soon.

will.octagon.gibson‭ wrote about 2 months ago

Thanks for looking into this. Please let me know when a fix has been deployed.

Monica Cellio‭ wrote about 2 months ago

We've just pushed a fix for this. The short form is that a smaller amount of markdown can lead to a much larger amount of HTML, and we were not properly accounting for that.

will.octagon.gibson‭ wrote about 2 months ago · edited about 2 months ago

Monica Cellio‭ Thanks for letting me know but unfortunately I still can’t post my review request despite my markdown being less than 30,000 characters. I have updated my post to show the new slightly different error message. It now states my body markdown is too long.

I could try to email my markdown to someone in Codidact if that would be helpful.

trichoplax‭ wrote about 2 months ago

That's another issue (just discovered yesterday as part of testing the fix for this issue).

I was hoping it wouldn't restrict you, since it doesn't reduce the character limit as much as the previous bug, but it seems you're close enough to the limit to still be affected.

Note that the mention of Windows line endings doesn't make it a Windows specific problem - it affects anyone on any operating system. It effectively loses you 1 character of limit for each new line in your post. For example, if you have 1,000 lines in your post, you will go over the limit at 29,000 instead of 30,000. This should give you an idea of how close you are to the limit to help you decide if it's worth trying to reduce lines or characters as a workaround.

Again, you shouldn't have to do this - it's just a potential workaround while we work out how to fix this.

Monica Cellio‭ wrote about 2 months ago

Ouch, I'm sorry! Thanks for offering the markdown; you can send it to [email protected] and I'll work with our developers to figure out what's going on.

will.octagon.gibson‭ wrote about 2 months ago · edited about 2 months ago

My proposed review request post has less than 30,000 characters of markdown but with the new line issue the total number of characters is about 30,400. When the new line issue is resolved, hopefully I can post my review request.

Monica Cellio‭ wrote about 2 months ago

We've pushed another fix and specifically tested it with your post. Before I status-tag this again, would you care to make the post to confirm in prod? Thanks.

will.octagon.gibson‭ wrote about 2 months ago

Monica Cellio‭ I successfully posted my code review request and shortly thereafter I successfully made a tiny edit to my post. So everything seems fine to me. Hurrah!

Please pass on my thanks to everyone who helped resolve this problem.

Monica Cellio‭ wrote about 2 months ago

Thanks for your patience! We learned things from investigating this bug, if that's any consolation. :-)

will.octagon.gibson‭ wrote about 2 months ago

Trichoplax: You made some suggested edits to my successfully posted code review request. Unfortunately when I went to examine your suggested edits in the before and after view, it showed my entire post and not just the neighborhood of your proposed changes. Additionally, both the before and after views were bolded for my entire post.

As a result, your proposed changes were hard to see.

I humbly request that you make no more suggested edits for my code review request post.

trichoplax‭ wrote about 2 months ago

will.octagon.gibson‭ I apologise for the unhelpful suggested edits. I've raised the problem of the entire post being highlighted in the diff as https://github.com/codidact/qpixel/issues/2122 and we're working to fix it. I won't be making any suggested edits until that is resolved.