Slack 模式视图不调用选项加载 URL 端点

问题描述

我创建了一个基本的松弛模态视图,它有一个“external_select”类型的占位符。对于数据源,我还在 slack 应用程序设置中向“选项加载 URL”添加一个端点。但是,在菜单搜索时没有给出任何结果。事实上,根本没有调用“选项加载 URL”。

模态代码如下:

@app.message("hello")
def message_hello(message,say):
    # say() sends a message to the channel where the event was triggered
    say(
        blocks=[
            {
                "type": "section","text": {"type": "mrkdwn","text": f"hey there <@{message['user']}>!"},"accessory": {
                    "type": "external_select","placeholder": {"type": "plain_text","text": "Click Me"},"action_id": "button_click"
                }
            }
        ],text=f"hey there <@{message['user']}>!"
    )

在浏览器中,我尝试检查后端错误。以下是出现。 slack app image

backend error 1

backend error 2

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)