Bixby Studio:“未知密钥:'headers'”

时间:2019-01-08 22:33:56

标签: bixby bixbystudio

我正在尝试使用远程端点来设置endpoints.bxb,但它给我一个错误...我无法弄清为什么它会出现。我的操作与Github示例http-master完全相同。

错误未知密钥:“标题”

endpoints {
  authorization {
    none
  }
  action-endpoints {
    action-endpoint(Find) {
        accepted-inputs ()
        remote-endpoint ("{remote.url}/find") {
          method (POST)
        }
        headers {
          header (Content-Type: application/json)
        }
      }
  }
}

1 个答案:

答案 0 :(得分:4)

该错误是由于headers标签未嵌套在remote-endpoint标签内引起的。