0

我目前正在使用一些potentialActions. 过去我已经成功地使用了这个openURI动作。target现在,当用户与卡交互时,我正在尝试使用“自定义传入 Webhook”来收集有关发送到的信息格式/数量的一些信息。

编辑 05/10:

我现在切换到使用已注册的连接器 (fdfa8471-96a7-411a-a6ad-f402709e2165)。消息卡已成功发送到团队聊天并显示配置的操作。尝试使用该操作时,我收到以下错误(在控制台中):

{  
   "data":{  
      "errorCode":"Forbidden",
      "message":"An unexpected error(Type = Forbidden) occurred. Please try again."
   },
   "status":403,
   "config":{  
      "method":"POST",
      "transformRequest":[  
         null
      ],
      "transformResponse":[  
         null
      ],
      "url":"https://teams.microsoft.com/api/mt/emea/beta/users/connectors/19:a5dd279d9bc744cca4286a6a0fadc975@thread.skype;messageid=1557483063258/1557483063258/executeAction",
      "data":{  
         "inputParameters":[  
            {  
               "id":"comment",
               "value":"pls :)"
            }
         ],
         "actionId":"7d66186f-ee1a-4612-a4c7-5c2099758db9",
         "potentialAction":"{\"@type\":\"HttpPOST\",\"@id\":\"7d66186f-ee1a-4612-a4c7-5c2099758db9\",\"name\":\"OK\",\"target\":\"https://*******.ngrok.io/api/v1/msteams/connectorAction/comment\",\"headers\":[],\"body\":\"comment={{comment.value}}\",\"bodyContentType\":\"\"}",
         "name":"action/connector",
         "integrationId":"gcor97uz3c",
         "meta":"{\"connectorSenderGuid\":\"fdfa8471-96a7-411a-a6ad-f402709e2165\",\"providerAccountUniqueId\":null,\"connectorConfigurationAlternateId\":\"a092b30d74ee436b9409be217b00e6c2\"}",
         "clientInfo":{  
            "locale":"en-gb",
            "country":"gb",
            "platform":"Web",
            "clientVersion":"1415/1.0.0.2019050223"
         }
      },
      "headers":{  
         "X-Skypetoken":"pii",
         "Authorization":"pii",
         "Accept":"application/json, text/plain, */*",
         "Content-Type":"application/json;charset=utf-8",
         "X-RingOverride":"general",
         "x-ms-scenario-id":"1325",
         "x-ms-request-id":"d0be16f6c0e745a5c9d3fd9d3c5d09ec_1326",
         "x-ms-user-type":"user",
         "x-ms-client-type":"web",
         "x-ms-client-env":"msteams-web-prod-euwe-01",
         "x-ms-client-version":"1415/1.0.0.2019050223",
         "x-ms-session-id":"d0be16f6-c0e7-45a5-c9d3-fd9d3c5d09ec"
      },
      "counter":"ext_actionable_card_http_post",
      "decrementNetworkRequests":null,
      "hostName":"teams.microsoft.com"
   },
   "statusText":""
}

操作中设置的targeturl 与在连接器中注册的 url 匹配。在我的隧道中没有收到任何 POST,所以我认为错误在后端。

您能否指出一些有关此问题的有用信息?

凝胶

4

0 回答 0