使用 HTTPS 的 Fiware-Orion 通知失败



我在使用Quantum-Leap的Fiware-Orion(2.1.0)通知中遇到了问题,用于管理时间序列数据(与该组件quantumleap相关)。

两者都在Docker容器中并使用HTTPS。

在Orion中,我为Quantum-Leap创建了订阅。它有效

当我创建或更新实体时,Orion 会向我发送 200 OK 响应,并且通知永远不会到达 Quantum-Leap。

我的日志中没有任何内容。

当我使用 Curl 或 Postman 直接向端点发出请求时,请求有效。使用 Orion 的请求总是失败。

这是Postman用于QuantmLeap的卷曲。

curl -X POST 
https://ql1-dev.mydomain.com/v2/notify 
-H 'Accept: application/json' 
-H 'Cache-Control: no-cache' 
-H 'Connection: keep-alive' 
-H 'Content-Type: application/json' 
-H 'Fiware-Service: svctestnca' 
-H 'Fiware-ServicePath: /svcpath/testnca' 
-H 'Host: ql1-dev.intranice.ville-nice.fr' 
-H 'Ngsiv2-AttrsFormat: normalized' 
-H 'Postman-Token: 76255023-47e3-44c5-8abf-d184a1dd77f0,adaa68e0-abf4-4fea-855d-39c3469ba1d4' 
-H 'User-Agent: PostmanRuntime/7.11.0' 
-H 'accept-encoding: gzip, deflate' 
-H 'cache-control: no-cache' 
-H 'content-length: 279' 
-d '{
"subscriptionId": "5c62b47f132e5369012c4726",
"data": [
{
"id": "Testnca:testnca1",
"type": "Testnca",
"dateObserved": {
"type": "DateTime",
"value": "2019-02-04T16:19:22.00Z"
},
"mesure": {
"type": "Number",
"value": 2.0
}
}
]
}'

感谢您的帮助和建议

我尝试像这个Stack-Overfow问题一样使用HAProxy,它解决了我的问题。

Orion 总是将端口号添加到我的请求中,我错过了该元素。

谢谢大家,尤其是斯蒂芬·鲁克斯NCA

最新更新