I have a problem with my Fiware-Orion (2.1.0) notifications with Quantum-Leap for managing time-series datas (related to that component quantumleap ).

Both are within Docker containers and using HTTPS.

In orion I create the subscription for Quantum-Leap. It works.

And when I create or update an entity, Orion send me an 200 OK response and the notification never reach Quantum-Leap.

I have nothing in logs.

When I make a request directly to an endpoint using Curl or Postman, the request works. Requests using Orion always fail.

Here is the curl used by Postman to QuantmLeap that works.

  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
        }
    }
  ]
}'

Thanks for help and advices

1 Answers

2
Grenouille06 On

I tried to use HAProxy like in this Stack-Overfow question and it solves my problem.

Orion always add the port number to my request and I missed that element.

Thank you all and especially StephaneRouxNCA