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

[fiware-stackoverflow] Orion subscriptions that never receive changes

    Details

      Description

      Created question in FIWARE Q/A platform on 04-09-2019 at 10:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/57784710/orion-subscriptions-that-never-receive-changes

      Question:
      Orion subscriptions that never receive changes

      Description:
      I'm having a problem with some entities to make the subscriptions. The subcriptions are well done (orion responds ok. Status 201) but the url subscribed never receive any update.

      I have fiware-orion launched with docker over a Centos 7.

      This is an example of the entity.

      {
      "id": "urn:ngsi-ld:ParkingGroup:Cervantes",
      "type": "ParkingGroup",
      "allowedVehicleType": {
      "type": "Property",
      "value": "car",
      "metadata": {}
      },
      "availableSpotNumber": {
      "type": "Property",
      "value": 59,
      "metadata": {}
      },
      "category": {
      "type": "Property",
      "value": [
      "offstreet",
      "feeCharged"
      ],
      "metadata": {}
      },
      "chargeType": {
      "type": "Property",
      "value": [
      "temporatyPrice"
      ],
      "metadata": {}
      },
      "description": {
      "type": "Property",
      "value": "Calle CervantesMálaga",
      "metadata": {}
      },
      "location": {
      "type": "GeoProperty",
      "value":

      { "type": "Point", "coordinates": [ "-4.4119148", "36.7208633" ] }

      ,
      "metadata": {}
      },
      "name": {
      "type": "Text",
      "value": "Cervantes",
      "metadata": {}
      },
      "occupancyDetectionType": {
      "type": "Property",
      "value": "none",
      "metadata": {}
      },
      "permitActiveHours": {
      "type": "Property",
      "value": "",
      "metadata": {}
      },
      "requiredPermit": {
      "type": "Property",
      "value": "noPermitNeeded",
      "metadata": {}
      },
      "totalSpotNumber": {
      "type": "Property",
      "value": "414",
      "metadata": {}
      }
      }

      I try different ways of subscriptions that all of them are accepted by orion like this:

      {
      "description": "Notificar cambios en Aparcamientos",
      "subject": {
      "entities": [

      { "idPattern": ".*", "type":"ParkingGroup" }

      ],
      "condition":

      { "attrs": [ "availableSpotNumber" ] }

      },
      "notification": {
      "attrs" : ["availableSpotNumber"],
      "http":

      { "url": "https://webhook.site/925f3290-07af-4dc9-88d2-27bcba693be5" }

      }
      }

      When I update the data with this through postman in mode PUT:

      http://orion/v2/entities/urn:ngsi-ld:ParkingGroup:Cervantes/attrs/availableSpotNumber/value

      and Body (text/plain) with value 2

      The data is well ubdate when I make in postman in mode GET:
      http://orion/v2/entities/urn:ngsi-ld:ParkingGroup:Cervantes/attrs/availableSpotNumber

      It returns:

      {
      "type": "Property",
      "value": 2,
      "metadata": {}
      }

      But url of the subscription never receives anything

      what is wrong?
      How can I solve it? How could I debug Orion to understand why it doesn't update the subscriptors?

      The idea is to subscribe later cygnus. I have read that I must add the attrsFormat for it in this way:

      "notification": {
      "http":

      { "url": "https://webhook.site/925f3290-07af-4dc9-88d2-27bcba693be5" }

      ,
      "attrs" : ["availableSpotNumber"],
      "attrsFormat": "legacy"
      }

      Thanks in advance

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-04 12:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-04 12:06|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-04 15:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-04 15:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-04 18:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-04 18:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

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

            Dates

            • Created:
              Updated:
              Resolved: