STH getting historical raw context

孤街醉人 提交于 2019-12-14 02:56:34

问题


I installed Orion and Fiware STH in order to use the minimalistic option.

The problem is that when i subscribe to an orion context then consult, the array is null.

"name": "temperature",
"values": []

In the STH log it says:

ERROR when collecting the raw data collection for retrieval (the collection may not exist).

I noticed that when i try to unsubscribe it returns a 200 OK message with the following body:

{
    "subscriptionId": "xxx",
    "statusCode": {
        "code": "404",
        "reasonPhrase": "No context element found",
        "details": "subscriptionId: /xxx/"
    }
}

EDIT: The request URL is:
192.168.60.117:8080/STH/v1/contextEntities/type/room/id/Room‌​1/

(In my case the type is "room" and not "Room"). The headers are Accept, 
Content-Type, Fiware-Service, Fiware-ServicePath

回答1:


It looks like more a problem when you make the subscription to ORION than when the data is processed by STH, you can find how to make the subscription in Orion and how to notify to STH in this link: https://fiware-sth-comet.readthedocs.io/en/latest/data-storage/index.html, Also, if you provide more information of how you make the subscription and the logs I could have a better view of where is the problem and I can help you in a better way.



来源:https://stackoverflow.com/questions/45867677/sth-getting-historical-raw-context

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!