我正在尝试使用远程端点来设置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)
}
}
}
}
答案 0 :(得分:4)
该错误是由于headers
标签未嵌套在remote-endpoint
标签内引起的。