HTTP 请求/服务总线 - application/x-www-form-urlencoded 不支持错误

HTTP request / Service bus - application/x-www-form-urlencoded not supported error

我有一个非常简单的逻辑应用程序:

我没有在 Logic App 中进行任何更改,但发送消息操作突然开始报告此错误:

Decoding as string is not supported for content envelope of type 
'application/x-www-form-urlencoded'.

发送消息定义如下:

"Send_message": {
                "inputs": {
                    "body": {
                        "Label": "@{triggerBody()}"
                    },
...

我只看到请求输出的不同之处:

之前

Headers
{
  "Accept": "*/*",
  "User-Agent": "Slackbot,1.0,(+https://api.slack.com/robots)",
  "Content-Type": "application/x-www-form-urlencoded"
  ...
}
Body
{
  "$content-type": "application/x-www-form-urlencoded",
  "$content": "dG9r..."
}

现在

Headers
{
  "Accept": "*/*",
  "User-Agent": "Slackbot,1.0,(+https://api.slack.com/robots)",
  "Content-Type": "application/x-www-form-urlencoded"
   ...
}

Body
{
  "$content-type": "application/x-www-form-urlencoded",
  "$content": "dG9r...",
  "$formdata": [
    {
      "key": "token",
      "value": "..."
    },
    {
      "key": "team_id",
      "value": "..."
    },
    {
      "key": "trigger_word",
      "value": "!"
    },
    ...
  ]
}

$formdata 现在是 Request 输出的一部分,作为包含所有查询参数的 JSON 数组。

有人有什么想法吗?我将不胜感激任何帮助让它再次工作。

编辑:西欧已修复并正常工作

是的,为了在运行时对 x-www-form-urlencoded 数据提供本机支持,最近发布了一个错误。我们现在正在回滚和修补。你能给我发一封电子邮件,这样我们就可以针对你所在的地区进行修复,并分享解决方法吗?提前道歉 - 作为一般规则,我们永远不想发布任何会破坏现有逻辑应用程序的东西。在这种情况下,在 form-data 周围添加一些新的元数据不再允许人们对 x-www-form-urlencoded 数据进行字符串化(这就是您在这里所做的)。