-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Description
According to the Slack documentation, a modal view can contain up to 100 blocks. However, in my multi-step form workflow, when the step 2 view contains a number of blocks well within this limit (e.g., 20 blocks at the top level), the view fails to render. There are no errors in the logs, and the view that is supposed to be rendered works perfectly in the Block Kit Builder. Despite this, the modal is not updated and instead displays the error:
"We had some trouble connecting. Try again?"
This makes it difficult to debug or understand what is causing the issue.
Version
slack v3.4.0OS Info
ProductName: macOS
ProductVersion: 15.5
BuildVersion: 24F74
Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:29 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6030Steps to Reproduce
- Create a multi-step modal workflow.
- In step 2, define a view with a number of blocks (e.g., 20) at the top level, well below the 100 block limit.
- Push or update the modal to display step 2.
- Observe that the modal fails to update and shows the error:
"We had some trouble connecting. Try again?" - Note that there are no errors in the logs, and the view renders fine in Block Kit Builder.
Expected Result
- The modal should update and render the step 2 view as defined, since the number of blocks is well within the documented limit.
Actual Result
- The modal fails to update and displays an error.
- No errors are logged.
- The view is valid and renders in Block Kit Builder.
Questions
-
Block Limit Scope:
When a modal view is pushed (usingresponse_action: "push") instead of updated, is the 100 block limit applied only to the step 2 view, or to the combined blocks of both step 1 and step 2 views? -
Block Limit Definition:
Does the 100 block limit apply only to top-level block elements, or does it also count nested elements (e.g., elements insiderich_textorinputblocks)? -
Error Handling:
Is there a handler or callback function that can be attached to a Slack Function to catch errors that occur during the submission handler? In this case, the view is being created and returned from theaddViewSubmissionHandlerwithout any error, but the modal fails to update and no error is surfaced. How can such issues be detected or debugged?addUnhandledEventHandleris also not able to catch the issue here.
Requirements
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.