“HttpPOST”动作给出一个 {"errorCode":"Forbidden"}

问题描述

我已成功创建了为 Microsoft Teams 创建 Office 365 连接器。我可以将留言卡发送到团队频道。消息卡包含“HttpPOST”操作,但是当我单击按钮时,我在 MS 团队应用程序中收到错误消息。应用程序尝试发布到以下 https://teams.microsoft.com/api/mt/emea/beta/users/connectors/19:0a75441f3c8340938d5f0789116fb5d5@thread.tacv2;messageid=1620161396652/1620161396652/executeAction,但它收到以下错误消息 {"errorCode":"Forbidden"}。

我的连接器注册成功,出现问题“您想在您的连接器卡上启用操作吗?”设置为是。

有人有什么想法吗?

{
    "@type": "MessageCard","@context": "http://schema.org/extensions","themeColor": "0076D7","summary": "Larry Bryant created a new task","sections": [{
        "activityTitle": "Larry Bryant created a new task","activitySubtitle": "On Project Tango","activityImage": "https://teamsnodesample.azurewebsites.net/static/img/image5.png","facts": [{
            "name": "Assigned to","value": "Unassigned"
        },{
            "name": "Due date","value": "Mon May 01 2017 17:07:18 GMT-0700 (Pacific Daylight Time)"
        },{
            "name": "Status","value": "Not started"
        }],"markdown": true
    }],"potentialAction": [{
        "@type": "ActionCard","name": "Add a comment","inputs": [{
            "@type": "TextInput","id": "comment","isMultiline": false,"title": "Add a comment here for this task"
        }],"actions": [{
            "@type": "HttpPOST","name": "Add comment","target": "<my url>"
        }]
    }]
}

解决方法

我会结束这个问题。我找到了答案。我使用的是普通的 O365 营业执照,而不是开发者执照。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...