在 Orion 1.4.0 中我使用以下 JSON 来订阅对于所有实体:
{
"description": "Update average rating",
"subject": {
"entities": [
{
"idPattern": ".*",
"type": ""
}
],
"condition": {
"attrs": []
}
},
"notification": {
"http": {
"url": "http://URL:1026/v2"
}
},
"expires": "2020-01-01T00:00:00.00Z",
"throttling": 5
}
今天我用 Orion 1.7.0 尝试了这个 JSON,但它不再起作用了。它返回以下错误:
ERROR 400
{"error":"BadRequest","description":"entity type length: 0, min length supported: 1"}
我意识到,这是因为"type": ""
。我把它改为"type": "*"
。订阅现在有效,但我没有收到任何通知。大概是*
不是订阅所有实体的正确模式。
供参考:https://github.com/telefonicaid/fiware-orion/issues/2876 https://github.com/telefonicaid/fiware-orion/issues/2876
尝试使用"typePattern": ".*"
代替"type": ""
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)