Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-19255

FIWARE.Question.Tech.Fiware Draco - Subscription works only for the first payload. Only the first payload is saved in historical mongodb.

    Details

      Description

      Created question in FIWARE Q/A platform on 21-02-2022 at 10:02
      Please, ANSWER this question AT https://stackoverflow.com/questions/71204976/fiware-draco-subscription-works-only-for-the-first-payload-only-the-first-pay

      Question:
      Fiware Draco - Subscription works only for the first payload. Only the first payload is saved in historical mongodb

      Description:
      I am trying to save historical context data in Mongo, but without success. Only the first payload sent to Draco is saved to MongoDB for historical data, but Mongo does not react to attribute updates.
      Versions used for the test: Orion-LD version 0.8.0, Mongo version 4.4, Draco version 1.3.6.
      I tested it also with the 3.4 version of Mongo and the behavior is the same.
      Can you, please, help me to fix a problem?
      Below are the steps I performed:
      Create a Draco subscription:
      curl --location --request POST 'http://localhost:1026/v2/subscriptions' \
      --header 'Fiware-Service: test' \
      --header 'Fiware-ServicePath: /openiot' \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "description": "Notify Draco of all context changes",
      "subject": {
      "entities": [

      { "idPattern": ".*" }

      ]
      },
      "notification": {
      "http":

      { "url": "http://10.0.0.5:5050/v2/notify" }

      },
      "throttling": 0
      }'

      Create an entity:
      curl --location --request POST 'http://localhost:1026/v2/entities' \
      --header 'Fiware-Service: test' \
      --header 'Fiware-ServicePath: /openiot' \
      --header 'Content-Type: application/json' \
      --data-raw ' {
      "id":"urn:ngsi-ld:Product:0102", "type":"Product",
      "name":

      {"type":"Text", "value":"Lemonade"}

      ,
      "size":

      {"type":"Text", "value": "S"}

      ,
      "price":

      {"type":"Integer", "value": 99}

      }'

      Overwrite the value of an attribute value:
      curl --location --request PUT 'http://localhost:1026/v2/entities/urn:ngsi-ld:Product:0102/attrs' \
      --header 'Fiware-Service: test' \
      --header 'Fiware-ServicePath: /openiot' \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "price":

      {"type":"Integer", "value": 110}

      }'

      LISTEN_HTTP PROCESSOR:
      LISTEN_HTTP
      NGSITOMONGO PROCESSOR:NGSITOMONGO
      Template: Template
      MongoDB: mongo

        Activity

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-02-22 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-02-22 05:31|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-03-05 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-03-05 05:31|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-03-06 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-03-06 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] Fiware Draco - Subscription works only for the first payload. Only the first payload is saved in historical mongodb FIWARE.Question.Tech.Fiware Draco - Subscription works only for the first payload. Only the first payload is saved in historical mongodb.
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        10d 23h 59m 1 Backlog Manager 05/Mar/22 6:31 AM
        In Progress In Progress Closed Closed
        1d 1 Backlog Manager 06/Mar/22 6:31 AM

          People

          • Assignee:
            Unassigned
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: