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

[fiware-stackoverflow] Subscription doesn't appear although success is reported

    Details

      Description

      Created question in FIWARE Q/A platform on 26-01-2015 at 10:01
      Please, ANSWER this question AT https://stackoverflow.com/questions/28147259/subscription-doesnt-appear-although-success-is-reported

      Question:
      Subscription doesn't appear although success is reported

      Description:
      I'm trying to create a subscription for attributes of an existing entity in OrionCB.

      URL
      http://130.206.80.120:1026/NGSI10/subscribeContext

      Method
      POST

      Headers
      Content-Type: application/xml

      Body

      <?xml version="1.0"?>
      <subscribeContextRequest>
      <entityIdList>
      <entityId type="finesce_meteo" isPattern="false">
      <id>finesce_meteo</id>
      </entityId>
      </entityIdList>
      <attributeList>
      <attribute>precip</attribute>
      </attributeList>
      <reference>http://localhost:5050/notify&lt;/reference&gt;
      <duration>P100Y</duration>
      <notifyConditions>
      <notifyCondition>
      <type>ONCHANGE</type>
      <condValueList>
      <condValue>precip</condValue>
      </condValueList>
      </notifyCondition>
      </notifyConditions>
      <throttling>PT5S</throttling>
      </subscribeContextRequest>

      This operation retrieves 200 OK headers code, with this body:

      <subscribeContextResponse>
      <subscribeResponse>
      <subscriptionId>54c5f049286043784451d08b</subscriptionId>
      <duration>P100Y</duration>
      <throttling>PT5S</throttling>
      </subscribeResponse>
      </subscribeContextResponse>

      The problem is when I'm trying to check if it's created. When I'm trying to list subscriptions, it doesn't appears. I'm using this line:

      echo 'db.csubs.find().pretty()' | mongo orion

      But if I delete this subscription with unsubscribeContextRequest, I get 200 OK code. It suggests this subscription exists.

      The fact a subscription exists (because it's created and deleted ok), and not appears any moment when i listing subscriptions, is rare.

      Please, is there something wrong?

      I'm trying this whit cygnus proccess started, and the same process with cygnus stopped, obtaining the same result.

      Regards

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 26-01-2015 at 10:01
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/28147259/subscription-doesnt-appear-although-success-is-reported


        +Question:+
        Subscription doesn&#39;t appear although success is reported

        +Description:+
        I'm trying to create a subscription for attributes of an existing entity in OrionCB.

        URL
        http://130.206.80.120:1026/NGSI10/subscribeContext

        Method
        POST

        Headers
        Content-Type: application/xml

        Body

        &lt;?xml version="1.0"?&gt;
        &lt;subscribeContextRequest&gt;
          &lt;entityIdList&gt;
            &lt;entityId type="finesce_meteo" isPattern="false"&gt;
              &lt;id&gt;finesce_meteo&lt;/id&gt;
            &lt;/entityId&gt;
          &lt;/entityIdList&gt;
          &lt;attributeList&gt;
            &lt;attribute&gt;precip&lt;/attribute&gt;
          &lt;/attributeList&gt;
          &lt;reference&gt;http://localhost:5050/notify&lt;/reference>
          &lt;duration&gt;P100Y&lt;/duration&gt;
          &lt;notifyConditions&gt;
            &lt;notifyCondition&gt;
              &lt;type&gt;ONCHANGE&lt;/type&gt;
              &lt;condValueList&gt;
                &lt;condValue&gt;precip&lt;/condValue&gt;
              &lt;/condValueList&gt;
            &lt;/notifyCondition&gt;
          &lt;/notifyConditions&gt;
          &lt;throttling&gt;PT5S&lt;/throttling&gt;
        &lt;/subscribeContextRequest&gt;


        This operation retrieves 200 OK headers code, with this body:

        &lt;subscribeContextResponse&gt;
          &lt;subscribeResponse&gt;
            &lt;subscriptionId&gt;54c5f049286043784451d08b&lt;/subscriptionId&gt;
            &lt;duration&gt;P100Y&lt;/duration&gt;
            &lt;throttling&gt;PT5S&lt;/throttling&gt;
          &lt;/subscribeResponse&gt;
        &lt;/subscribeContextResponse&gt;


        The problem is when I'm trying to check if it's created. When I'm trying to list subscriptions, it doesn't appears. I'm using this line:

        echo 'db.csubs.find().pretty()' | mongo orion


        But if I delete this subscription with unsubscribeContextRequest, I get 200 OK code. It suggests this subscription exists.

        The fact a subscription exists (because it's created and deleted ok), and not appears any moment when i listing subscriptions, is rare.

        Please, is there something wrong?

        I'm trying this whit cygnus proccess started, and the same process with cygnus stopped, obtaining the same result.

        Regards
        Created question in FIWARE Q/A platform on 26-01-2015 at 10:01
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/28147259/subscription-doesnt-appear-although-success-is-reported


        +Question:+
        Subscription doesn&#39;t appear although success is reported

        +Description:+
        I'm trying to create a subscription for attributes of an existing entity in OrionCB.

        URL
        http://130.206.80.120:1026/NGSI10/subscribeContext

        Method
        POST

        Headers
        Content-Type: application/xml

        Body

        &lt;?xml version="1.0"?&gt;
        &lt;subscribeContextRequest&gt;
          &lt;entityIdList&gt;
            &lt;entityId type="finesce_meteo" isPattern="false"&gt;
              &lt;id&gt;finesce_meteo&lt;/id&gt;
            &lt;/entityId&gt;
          &lt;/entityIdList&gt;
          &lt;attributeList&gt;
            &lt;attribute&gt;precip&lt;/attribute&gt;
          &lt;/attributeList&gt;
          &lt;reference&gt;http://localhost:5050/notify&lt;/reference>
          &lt;duration&gt;P100Y&lt;/duration&gt;
          &lt;notifyConditions&gt;
            &lt;notifyCondition&gt;
              &lt;type&gt;ONCHANGE&lt;/type&gt;
              &lt;condValueList&gt;
                &lt;condValue&gt;precip&lt;/condValue&gt;
              &lt;/condValueList&gt;
            &lt;/notifyCondition&gt;
          &lt;/notifyConditions&gt;
          &lt;throttling&gt;PT5S&lt;/throttling&gt;
        &lt;/subscribeContextRequest&gt;


        This operation retrieves 200 OK headers code, with this body:

        &lt;subscribeContextResponse&gt;
          &lt;subscribeResponse&gt;
            &lt;subscriptionId&gt;54c5f049286043784451d08b&lt;/subscriptionId&gt;
            &lt;duration&gt;P100Y&lt;/duration&gt;
            &lt;throttling&gt;PT5S&lt;/throttling&gt;
          &lt;/subscribeResponse&gt;
        &lt;/subscribeContextResponse&gt;


        The problem is when I'm trying to check if it's created. When I'm trying to list subscriptions, it doesn't appears. I'm using this line:

        echo 'db.csubs.find().pretty()' | mongo orion


        But if I delete this subscription with unsubscribeContextRequest, I get 200 OK code. It suggests this subscription exists.

        The fact a subscription exists (because it's created and deleted ok), and not appears any moment when i listing subscriptions, is rare.

        Please, is there something wrong?

        I'm trying this whit cygnus proccess started, and the same process with cygnus stopped, obtaining the same result.

        Regards
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ] Fermín Galán [ fermin ]
        fla Fernando Lopez made changes -
        Resolution Dismissed [ 10102 ]
        Status Closed [ 6 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Component/s SPAM [ 11404 ]
        fla Fernando Lopez made changes -
        Resolution Dismissed [ 10102 ]
        Status Open [ 1 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Component/s SPAM [ 11404 ]
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: