2016-03-17 26 views
1

我正在嘗試使用稱爲NGSI適配器的Monitoring GE/Sextant工具。我試圖從https://github.com/telefonicaid/fiware-monitoring/blob/develop/README.rst#api-overview使用NGSI適配器發佈更新到Orion上下文代理

運行命令行建議,我總是得到這樣的迴應:

時間= 2016-03-16T11:06:18.794Z | lvl = INFO | trans = ciluqsqi1000077m2u9zwb8x5 | op = POST | msg =請求資源/ check_load params id = host_1 & type =主機

time = 2016-03-16T11:06:18.800Z | lvl = INFO | trans = ciluqsqi1000077m2u9zwb8x5 | op = POST | msg =響應狀態200 OK

time = 2016-03-16T11:05:07.004Z | lvl = INFO | trans = ciluqr73e0000umm2nir549ts | op = UpdateContext | msg =請求ContextBroker http://orion:1026 ...

time = 2016-03-16T11:05:07.013Z | lvl = INFO | trans = ciluqr73e0000umm2nir549ts | op = UpdateContext | MSG =響應狀態415 不支持的媒體類型

通過觀察的發行說明到獵戶3.4.1,「不支持的媒體類型」表示該內容類型的請求頭是不可接受的。從瀏覽lib/parsers/common/base.js中的代碼看來,NGSI Adapter目前只支持xml。我認爲獵戶座現在只支持JSON。

我是否正確NGSI適配器和Orion之間的這種不兼容性存在? 預計何時修復?

回答

0

你說得對。

看看release notes,你會發現Orion 0.28.0是包含XML支持的最後一個版本(自0.23.0開始棄用)。

因此,發佈了新的NGSI適配器v1.4.0(作爲FIWARE Monitoring 5.2.3的一部分包含)。請按照這些instructions安裝它並檢查文檔ReadTheDocs

感謝您使用FIWARE Monitoring。