我正在使用根据映像配置了(Orion Broker和STH-Comet)的Fiware云。
实体和订阅已成功创建。数据正在MongoDB中聚合。
通过Orion Post通过http://my_public_ip:1026/v2/entities?Limit=100
访问我已成功返回实体。
问题是:当我尝试通过邮递员通过STH-Comet API通过以下方式列出值时: http://my_public_ip:8666/STH/v1/contextEntities/type/Room/id/Room3/attributes/temperature?hLimit=3&hOffset=0
什么都没有返回,并且错误消息出现在Postman中: 请求错误而不提供详细信息
注意:端口8666已在Fiware云安全组中发布。 已配置fiware-service和fiware-servicepath。
现在,如果我通过腻子(通过终端通过SSH)连接我的Fiware云并运行:
curl --location --request GET“ http://localhost:8666/STH/v1/contextEntities/type/Room/id/Room3/attributes/temperature?hLimit=3&hOffset=0” --header“ fiware-service:testservice” --header“ fiware-servicepath:/ testservicepath”
数据出现。
通过将Orion端口更改为STH-Comet的公共IP应该起作用,对吗?那会是什么?