Slack · api · fg-0365

Slack rejects a generated message with invalid_blocks once the report grows

If you see invalid_blocks from chat.postMessage, the cause and the fix for Slack are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
invalid_blocks from chat.postMessagemsg_blocks_too_longSmall test reports post fine, large ones fail
Cause
A message holds at most 50 blocks and a modal or Home tab 100. A section text is capped at 3,000 characters and a section takes at most 10 fields of 2,000 characters each.
Fix
Count blocks and truncate text before posting. Split long reports across threaded messages or attach a file.
Apply
for chunk in [blocks[i:i+50] for i in range(0, len(blocks), 50)]: client.chat_postMessage(channel=cid, blocks=chunk, text="Report", thread_ts=parent_ts)
Affected
Slack Block Kit in messages, modals and Home tabs, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun