You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to open a modal View (client.views_open(...)) with view's blocks containing an ActionsBlock, which itself contains an StaticMultiSelectElement. or
Using https://app.slack.com/block-kit-buildermodal preview or home preview options, insert this for blocks:
No errors when creating new ActionsBlock with StaticMultiSelectElement block, but the request returns an API error:
SlackApiError: The request to the Slack API failed. (url: https://xxx.enterprise.slack.com/api/views.open, status: 200)
The server responded with: {'ok': False, 'error': 'invalid_arguments', 'response_metadata': {'messages': ['[ERROR] unsupported element: multiselect [json-pointer:view/blocks/4]']}}
or if using Block Kit Builder:
No error text is displayed, but an alert icon is rendered instead of a modal.
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Hi @chet-manley, thank you for taking the time to report this and we're sorry for the disruption. It seems the server-side rendering logic may have some issues with this pattern. Since this issue tracker is for the client-side SDKs, we're unable to track this type of bug reports here.
We also will escalate this issue internally, but could you please contact our customer support team via /feedback in your corporate Slack workspace or at https://my.slack.com/help/requests/new ? They'll relay the issue to relevant backend engineering teams quickly. It'd be appreciated if you could understand this.
The Slack backend engineering team has confirmed that any *MultiSelectElement will not work inside an ActionsBlock. Given this information, would it be possible to make doing this raise an exception when creating an ActionsBlock?
Thanks for sharing this. Indeed, it's technically feasible to add some validations on this client SDK side like you suggest, but for this use case, we prefer having input validation on the servert-side instead. We will communciate with the teams to make the enhancement happen.
The Slack SDK version
slack-bolt==1.18.1
slack_sdk==3.33.1
Python runtime version
Python 3.11.10
OS info
Linux 1557001f30f5 6.8.4-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 20:45:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce:
Likely related issue: slackapi/node-slack-sdk#1299
Attempt to open a modal
View
(client.views_open(...)
) with view's blocks containing anActionsBlock
, which itself contains anStaticMultiSelectElement
.or
Using https://app.slack.com/block-kit-builder
modal preview
orhome preview
options, insert this for blocks:Dynamic link to Block Kit Builder with this payload.
Expected result:
Slack (or Block Kit Builder) renders a modal with a multiselect element.
This is supported per documentation: https://api.slack.com/reference/block-kit/block-elements#multi_select
Works with block types: Actions
Actual result:
No errors when creating new
ActionsBlock
withStaticMultiSelectElement
block, but the request returns an API error:or if using Block Kit Builder:
![image](https://private-user-images.githubusercontent.com/6780085/402164813-5335fe24-5b0c-473f-971a-b482eb48cdf0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTY1MTMsIm5iZiI6MTczOTE1NjIxMywicGF0aCI6Ii82NzgwMDg1LzQwMjE2NDgxMy01MzM1ZmUyNC01YjBjLTQ3M2YtOTcxYS1iNDgyZWI0OGNkZjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDI1NjUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzhjMTczMTc1MDlmOWY0YTlmY2Y0N2U3MWYxMDhiMjVkM2MyY2UzZGQ0NGM4MWQ3MDhkMzI1ZTQ3YmQ0NmYzNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.gk5i43L_mFeB-4zoSFrMg_tuAnLofWBZ77BzD0WLrz0)
No error text is displayed, but an alert icon is rendered instead of a modal.
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: