我正在尝试使用名为NGSI Adapter的Monitoring GE / Sextant工具。我正在尝试从https://github.com/telefonicaid/fiware-monitoring/blob/develop/README.rst#api-overview
运行命令行建议我总是得到这样的答复:
时间= 2016-03-16T11:06:18.794Z | lvl = INFO | trans = ciluqsqi1000077m2u9zwb8x5 | op = POST | msg =资源/ check_load上的请求,参数为id = host_1& type = host
时间= 2016-03-16T11:06:18.800Z | lvl = INFO | trans = ciluqsqi1000077m2u9zwb8x5 | op = POST | msg =响应状态200 OK
时间= 2016-03-16T11:05:07.004Z | lvl = INFO | trans = ciluqr73e0000umm2nir549ts | op = UpdateContext | msg =在http://orion:1026 ...
请求ContextBroker时间= 2016-03-16T11:05:07.013Z | lvl = INFO | trans = ciluqr73e0000umm2nir549ts | op = UpdateContext | msg =响应状态415 不支持的媒体类型
从发行说明到Orion 3.4.1,"不支持的媒体类型"表示请求标头中的Content-Type是不可接受的。通过浏览lib / parsers / common / base.js中的代码,似乎NGSI Adapter目前仅支持xml。我认为Orion现在只支持JSON。
我是否认为NGSI Adapter和Orion之间存在这种不兼容性? 什么时候修复?
答案 0 :(得分:0)
你是对的。
看一下release notes,您会发现Orion 0.28.0是包含XML支持的最后一个版本(自0.23.0以来已弃用)。
出于这个原因,新的 NGSI适配器v1.4.0 (作为FIWARE Monitoring 5.2.3的一部分)已经发布。请按照这些instructions进行安装,并查看ReadTheDocs上的文档。
感谢您使用FIWARE Monitoring。