Perseo前端在日志中显示此错误:msg =缺少子服务标头msg =缺少服务标头

时间:2019-05-11 15:41:28

标签: fiware fiware-cep fiware-perseo

我使用perseo cep为其设置了一条规则。我在Perseo fron End的日志中收到此消息:http://perseo-core:8080/perseo-core/rules返回{“ code”:200,“ body”:{}}。然后,当我修改属性时,在Perseo Core的日志中,我看到以下消息:msg = Firing Rule:MapEventBean。到目前为止,还算不错,但是随后在Perseo FE的日志中又收到一条消息:msg =缺少子服务标头msg =缺少服务标头,并且它没有更新我的实体。

这是日志: 时间= 2019-05-11T14:30:48.774Z | lvl = INFO | corr = n / a | trans = n / a | op = checkRequest | comp = perseo-fe | srv = n / a | subsrv = n / a | msg =缺少子服务标头 时间= 2019-05-11T14:30:48.774Z | lvl = INFO | corr = n / a | trans = n / a | op = checkRequest | comp = perseo-fe | srv = n / a | subsrv = n / a | msg =缺少服务标头 时间= 2019-05-11T14:30:48.774Z | lvl = INFO | corr = 5229c32c-362a-43f6-acda-11d6d8198261; perseocep = 21 | trans = 5229c32c-362a-43f6-acda-11d6d8198261 | op = / version | path = / version | comp = perseo-fe | srv = unknownt | subsrv = / | from = :: 1 | msg =传入请求{“方法”:“ GET”,“ URL”:“ /版本”,“标头”:{“主机”:“ localhost:9090”,“用户代理”:“ curl / 7.52.1” ,“ accept”:“ / ”},“ body”:{},“ subservice”:“ /”,“ service”:“ unknownt”} 时间= 2019-05-11T14:30:48.774Z | lvl = INFO | corr = 5229c32c-362a-43f6-acda-11d6d8198261; perseocep = 21 | trans = 5229c32c-362a-43f6-acda-11d6d8198261 | op = / version | path = / version | comp = perseo-fe | srv = unknownt | subsrv = / | from = :: 1 | msg =发送

Mi Rule:

{     “ name”:“ pruebaUpdate”,     “ text”:“从模式[每个ev = iotEvent(cast(cast(cast(temperature?,String),float)>> 45)and type = \“ AirQualityObserved \”)]“,     “动作”:[{         “ type”:“更新”,         “参数”:{             “ id”:“ $ {id}”,             “ type”:“观察到的空气质量”,             “ version”:“ 2”,             “属性”:[                 {                     “ name”:“异常”,                     “ type”:“ boolean”,                     “ value”:“ true”                 }             ]         }     }] }

我想在另一个属性高于某个值时更新一个属性,该属性存在于某些实体中,但不在相同类型的其他实体中。我不会更新该属性。

2 个答案:

答案 0 :(得分:0)

msg=missing subservice header, msg=missing service header通常意味着传入请求没有基于fiware-servicefiware-servicepath的HTTP头,而HTTP头是基于多租户的。 here描述了FIWARE多租户模型。

答案 1 :(得分:0)

将规则放在正确的位置,我没有收到“缺少服务子服务”的错误。我向http://perseo-fe-ip:9090/rules注册了规则,并解决了问题。