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

FIWARE.Request.Tech.IMPACT: Orion subscriptions to notify cygnus.

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      I have an issue sending notifications from subscriptions I've setup on
      Orion Object Broker.

      I've setup Orion and I'm able to create entities, etc without issues.

      Now I'm trying to setup a subscription so new entities will be send to
      cygnus.

      In Orion I have an entity called "Event" and I'm trying to setup a
      subscription so every time a new "Event" entity is created it will notify a
      (cygnus ngsi) endpoint.

      This is my CURL for creating a subscription

      *curl -X "POST" "http://staging.familiohq.com:1026/v2/subscriptions
      <http://staging.familiohq.com:1026/v2/subscriptions>" *

      • -H 'Accept: application/json' *
      • -H 'Fiware-ServicePath: /' *
      • -H 'Content-Type: application/json' *
      • -d $'{*
      • "throttling": 1,*
      • "subject": {*
      • "entities": [*
      • {*
      • "type": "Event",*
      • "idPattern": "."
      • }*
      • ]*
      • },*
      • "description": "Event subscription",*
      • "notification": {*
      • "attrs": [*
      • "location"*
      • ],*
      • "http": {*
      • "url": "http://staging.familiohq.com
        <http://staging.familiohq.com>:5050/notify"*
      • },*
      • "attrsformat": "legacy"*
      • },*
      • "expires": "2020-12-31T00:00:00.000Z"*
        }'

      I'm using the v2 subscriptions endpoint with the "attrsformat" = "legacy"
      instead of using v1 subscribeContext. Both should work according to the
      documentation (at
      http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html
      ).

      The Orion and Cygnus docker containers seems to run as expected but when
      I'm listing my subscriptions using

      curl "http://staging.familiohq.com:1026/v2/subscriptions" \
      -H 'Fiware-ServicePath: /'

      I'm getting a failed status

      [ {
      "id": "5a16bb600cd43be01f108c0c",
      "description": "Event subscription",
      "expires": "2020-12-31T00:00:00.00Z",

      • "status": "failed",*
        "subject":
        Unknown macro: { "entities"}

        ,
        "notification":

        Unknown macro: { "timesSent"}

        ,
        "throttling": 1
        }
        ]

      Are you able to help me figure out what's causing the issue setting up the
      subscription or could you let me know if you need more information..

      Thanks

      Peter from Watcher.


      Peter Theill
      CTO
      +45 6171 5096 <61%2071%2050%2096>
      peter@familiohq.com

      Familio
      Artillerivej 86
      DK-2300 Copenhagen S
      https://familiohq.com/

      __________________________________________________________________________________________

      You can get more information about our cookies and privacy policies on the following links:

      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Peter Theill <peter@familiohq.com>]

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        4h 22m 1 Veronika Vlnkova 23/Nov/17 2:30 PM
        In Progress In Progress Answered Answered
        4s 1 Veronika Vlnkova 23/Nov/17 2:30 PM
        Answered Answered Closed Closed
        3s 1 Veronika Vlnkova 23/Nov/17 2:30 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Comment [ Comment by jira-help-desk@jira.fiware.org :

        Spam detection software, running on the system "fiware-forge-01", has
        identified this incoming email as possible spam. The original message
        has been attached to this so you can view it (if it isn't spam) or label
        similar future email. If you have any questions, see
        the administrator of that system for details.

        Content preview: [ https://jira.fiware.org/browse/HELP-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
           ] FW External User updated HELP-12976: Attachment: [FIWARE-JIRA] (HELP-12976)
           [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job
           Application [...]

        Content analysis details: (6.1 points, 4.5 required)

         pts rule name description
        ---- ---------------------- --------------------------------------------------
         1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist
                                    [URIs: latedeliver.com]
         2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist
                                    [URIs: latedeliver.com]
         0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1
         3.8 HELO_LOCALHOST HELO_LOCALHOST
         0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP
        -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
                                    [score: 0.0000]

        ]
        fla Fernando Lopez made changes -
        Comment [ Comment by jira-help-desk@jira.fiware.org :

        Spam detection software, running on the system "fiware-forge-01", has
        identified this incoming email as possible spam. The original message
        has been attached to this so you can view it (if it isn't spam) or label
        similar future email. If you have any questions, see
        the administrator of that system for details.

        Content preview: [ https://jira.fiware.org/browse/HELP-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
           ] FW External User updated HELP-12976: > [Fiware-general-help] [SPAM] [FIWARE-JIRA]
           (HELP-13082) [SPAM] Website Job Application > > > Key: HELP-12976 > URL:
          https://jira.fiware.org/browse/HELP-12976 > Project: Help-Desk > Issue Type:
           extRequest > Reporter: FW External User > Attachments: [FIWARE-JIRA] (HELP-12976)
           [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job
           Application, [FIWARE-JIRA] (HELP-13082) [Fiware-general-help] [SPAM] Website
           Job Application > > > Spam detection software, running on the system "fiware-forge-01",
           has > identified this incoming email as possible spam. The original message
           > has been attached to this so you can view it (if it isn't spam) or label
           > similar future email. If you have any questions, see > the administrator
           of that system for details. > Content preview: [ https://jira.fiware.org/browse/HELP-13082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
           > ] FW External User updated HELP-13082: Attachment: [FIWARE-JIRA] (HELP-13082)
           > [Fiware-general-help] [SPAM] Website Job Application [...] > Content analysis
           details: (6.1 points, 4.5 required) > pts rule name description > ---- >
          1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist > [URIs: latedeliver.com]
           > 2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist > [URIs:
           latedeliver.com] > 0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1 > 3.8 HELO_LOCALHOST
           HELO_LOCALHOST > -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% >
          [score: 0.0000] > > You can get more information about our cookies and privacy
           policies on the following links: > - http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy
           > - http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE
           > Fiware-general-help mailing list > [...]

        Content analysis details: (6.9 points, 4.5 required)

         pts rule name description
        ---- ---------------------- --------------------------------------------------
         1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist
                                    [URIs: latedeliver.com]
         2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist
                                    [URIs: latedeliver.com]
         0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1
         3.8 HELO_LOCALHOST HELO_LOCALHOST
        -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
                                    [score: 0.0000]
         0.8 RDNS_NONE Delivered to internal network by a host with no rDNS

        ]
        fla Fernando Lopez made changes -
        Comment [ Comment by jira-help-desk@jira.fiware.org :

        Spam detection software, running on the system "fiware-forge-01", has
        identified this incoming email as possible spam. The original message
        has been attached to this so you can view it (if it isn't spam) or label
        similar future email. If you have any questions, see
        the administrator of that system for details.

        Content preview: [ https://jira.fiware.org/browse/HELP-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
           ] FW External User updated HELP-12976: Attachment: [FIWARE-JIRA] (HELP-12976)
           [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job
           Application [...]

        Content analysis details: (6.9 points, 4.5 required)

         pts rule name description
        ---- ---------------------- --------------------------------------------------
         1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist
                                    [URIs: latedeliver.com]
         2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist
                                    [URIs: latedeliver.com]
         0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1
         3.8 HELO_LOCALHOST HELO_LOCALHOST
        -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
                                    [score: 0.0000]
         0.8 RDNS_NONE Delivered to internal network by a host with no rDNS

        ]
        fla Fernando Lopez made changes -
        Comment [ Comment by jira-help-desk@jira.fiware.org :

        Spam detection software, running on the system "fiware-forge-01", has
        identified this incoming email as possible spam. The original message
        has been attached to this so you can view it (if it isn't spam) or label
        similar future email. If you have any questions, see
        the administrator of that system for details.

        Content preview: [ https://jira.fiware.org/browse/HELP-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
           ] FW External User updated HELP-12976: > [Fiware-general-help] [SPAM] [FIWARE-JIRA]
           (HELP-13082) [SPAM] Website Job Application > > > Key: HELP-12976 > URL:
          https://jira.fiware.org/browse/HELP-12976 > Project: Help-Desk > Issue Type:
           extRequest > Reporter: FW External User > Attachments: [FIWARE-JIRA] (HELP-13082)
           [Fiware-general-help] [SPAM] Website Job Application > > > Spam detection
           software, running on the system "fiware-forge-01", has > identified this
          incoming email as possible spam. The original message > has been attached
          to this so you can view it (if it isn't spam) or label > similar future email.
           If you have any questions, see > the administrator of that system for details.
           > Content preview: [ https://jira.fiware.org/browse/HELP-13082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
           > ] FW External User updated HELP-13082: Attachment: [FIWARE-JIRA] (HELP-13082)
           > [Fiware-general-help] [SPAM] Website Job Application [...] > Content analysis
           details: (6.1 points, 4.5 required) > pts rule name description > ---- >
          1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist > [URIs: latedeliver.com]
           > 2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist > [URIs:
           latedeliver.com] > 0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1 > 3.8 HELO_LOCALHOST
           HELO_LOCALHOST > -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% >
          [score: 0.0000] > > You can get more information about our cookies and privacy
           policies on the following links: > - http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy
           > - http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE
           > Fiware-general-help mailing list > Fiware-general-help@lists.fiware.org
           > https://lists.fiware.org/listinfo/fiware-general-help > [Created via e-mail
           received [...]

        Content analysis details: (6.9 points, 4.5 required)

         pts rule name description
        ---- ---------------------- --------------------------------------------------
         1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist
                                    [URIs: latedeliver.com]
         2.5 URIBL_DBL_SPAM Contains a spam URL listed in the DBL blocklist
                                    [URIs: latedeliver.com]
         0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1
         3.8 HELO_LOCALHOST HELO_LOCALHOST
        -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
                                    [score: 0.0000]
         0.8 RDNS_NONE Delivered to internal network by a host with no rDNS

        ]
        fla Fernando Lopez made changes -
        Attachment [FIWARE-JIRA] (HELP-12976) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 60978 ]
        fla Fernando Lopez made changes -
        Attachment [FIWARE-JIRA] (HELP-12976) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 62281 ]
        fla Fernando Lopez made changes -
        Attachment [FIWARE-JIRA] (HELP-12976) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 62282 ]
        Hide
        fw.ext.user FW External User added a comment -

        Comment by jira-help-desk@jira.fiware.org :
        Renamed attached file: '[FIWARE-JIRA] (HELP-12976) FIWARE.Request.Tech.IMPACT: Orion subscriptions to notify cygnus.' to '[FIWARE-JIRA] (HELP-12976) FIWARE.Request.Tech.IMPACT_ Orion subscriptions to notify cygnus.' because it contained invalid character(s).

        Show
        fw.ext.user FW External User added a comment - Comment by jira-help-desk@jira.fiware.org : Renamed attached file: ' [FIWARE-JIRA] ( HELP-12976 ) FIWARE.Request.Tech.IMPACT: Orion subscriptions to notify cygnus.' to ' [FIWARE-JIRA] ( HELP-12976 ) FIWARE.Request.Tech.IMPACT_ Orion subscriptions to notify cygnus.' because it contained invalid character(s).
        fw.ext.user FW External User made changes -
        Attachment [FIWARE-JIRA] (HELP-12976) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 62282 ]
        fw.ext.user FW External User made changes -
        Attachment [FIWARE-JIRA] (HELP-12976) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 62281 ]
        fw.ext.user FW External User made changes -
        Attachment [FIWARE-JIRA] (HELP-12976) [Fiware-general-help] [SPAM] [FIWARE-JIRA] (HELP-13082) [SPAM] Website Job Application [ 60978 ]
        backlogmanager Backlog Manager made changes -
        Summary [Fiware-tech-help] IMPACT: Orion subscriptions to notify cygnus FIWARE.Request.Tech.IMPACT: Orion subscriptions to notify cygnus.
        veronika Veronika Vlnkova made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        veronika Veronika Vlnkova made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        veronika Veronika Vlnkova made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        fw.ext.user FW External User added a comment -

        Comment by jsalvachua@dit.upm.es :

        Hello Peter,

        Ok, thanks for solving it yourself.

        Joaquin

        > El 23 nov 2017, a las 14:45, Peter Theill <peter@familiohq.com> escribió:
        >
        > Hi Fiware Tech,
        >
        > I figured out the notification issue so close this ticket, please.
        >
        > On Thu, Nov 23, 2017 at 1:59 PM Peter Theill <peter@familiohq.com <peter@familiohq.com>> wrote:
        > I have an issue sending notifications from subscriptions I've setup on Orion Object Broker.
        >
        > I've setup Orion and I'm able to create entities, etc without issues.
        >
        > Now I'm trying to setup a subscription so new entities will be send to cygnus.
        >
        > In Orion I have an entity called "Event" and I'm trying to setup a subscription so every time a new "Event" entity is created it will notify a (cygnus ngsi) endpoint.
        >
        > This is my CURL for creating a subscription
        >
        > curl -X "POST" "http://staging.familiohq.com:1026/v2/subscriptions <http://staging.familiohq.com:1026/v2/subscriptions>" \
        > -H 'Accept: application/json' \
        > -H 'Fiware-ServicePath: /' \
        > -H 'Content-Type: application/json' \
        > -d $'{
        > "throttling": 1,
        > "subject": {
        > "entities": [
        >

        { > "type": "Event", > "idPattern": ".*" > }

        > ]
        > },
        > "description": "Event subscription",
        > "notification": {
        > "attrs": [
        > "location"
        > ],
        > "http":

        { > "url": "http://staging.familiohq.com <http://staging.familiohq.com/>:5050/notify" > }

        ,
        > "attrsformat": "legacy"
        > },
        > "expires": "2020-12-31T00:00:00.000Z"
        > }'
        >
        > I'm using the v2 subscriptions endpoint with the "attrsformat" = "legacy" instead of using v1 subscribeContext. Both should work according to the documentation (at http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html <http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html>).
        >
        > The Orion and Cygnus docker containers seems to run as expected but when I'm listing my subscriptions using
        >
        > curl "http://staging.familiohq.com:1026/v2/subscriptions <http://staging.familiohq.com:1026/v2/subscriptions>" \
        > -H 'Fiware-ServicePath: /'
        >
        > I'm getting a failed status
        >
        > [ {
        > "id": "5a16bb600cd43be01f108c0c",
        > "description": "Event subscription",
        > "expires": "2020-12-31T00:00:00.00Z",
        > "status": "failed",
        > "subject": {
        > "entities": [
        >

        { > "idPattern": ".*", > "type": "Event" > }

        > ],
        > "condition":

        { > "attrs": [] > }

        > },
        > "notification": {
        > "timesSent": 3,
        > "lastNotification": "2017-11-23T12:14:04.00Z",
        > "attrs": [
        > "location"
        > ],
        > "attrsFormat": "normalized",
        > "http":

        { > "url": "http://staging.familiohq.com:5050/notify <http://staging.familiohq.com:5050/notify>" > }

        ,
        > "lastFailure": "2017-11-23T12:14:04.00Z"
        > },
        > "throttling": 1
        > }
        > ]
        >
        > Are you able to help me figure out what's causing the issue setting up the subscription or could you let me know if you need more information..
        >
        > Thanks
        >
        > Peter from Watcher.
        >
        >
        > –
        > Peter Theill
        > CTO
        > +45 6171 5096 <tel:61%2071%2050%2096>
        > peter@familiohq.com <peter@familiohq.com>
        >
        > Familio
        > Artillerivej 86
        > DK-2300 Copenhagen S
        > https://familiohq.com/ <https://familiohq.com/>
        > –
        > Peter Theill
        > CTO
        > +45 6171 5096 <tel:61%2071%2050%2096>
        > peter@familiohq.com <peter@familiohq.com>
        >
        > Familio
        > Artillerivej 86
        > DK-2300 Copenhagen S
        > https://familiohq.com/ <https://familiohq.com/>

        Show
        fw.ext.user FW External User added a comment - Comment by jsalvachua@dit.upm.es : Hello Peter, Ok, thanks for solving it yourself. Joaquin > El 23 nov 2017, a las 14:45, Peter Theill <peter@familiohq.com> escribió: > > Hi Fiware Tech, > > I figured out the notification issue so close this ticket, please. > > On Thu, Nov 23, 2017 at 1:59 PM Peter Theill <peter@familiohq.com < peter@familiohq.com >> wrote: > I have an issue sending notifications from subscriptions I've setup on Orion Object Broker. > > I've setup Orion and I'm able to create entities, etc without issues. > > Now I'm trying to setup a subscription so new entities will be send to cygnus. > > In Orion I have an entity called "Event" and I'm trying to setup a subscription so every time a new "Event" entity is created it will notify a (cygnus ngsi) endpoint. > > This is my CURL for creating a subscription > > curl -X "POST" "http://staging.familiohq.com:1026/v2/subscriptions < http://staging.familiohq.com:1026/v2/subscriptions >" \ > -H 'Accept: application/json' \ > -H 'Fiware-ServicePath: /' \ > -H 'Content-Type: application/json' \ > -d $'{ > "throttling": 1, > "subject": { > "entities": [ > { > "type": "Event", > "idPattern": ".*" > } > ] > }, > "description": "Event subscription", > "notification": { > "attrs": [ > "location" > ], > "http": { > "url": "http://staging.familiohq.com <http://staging.familiohq.com/>:5050/notify" > } , > "attrsformat": "legacy" > }, > "expires": "2020-12-31T00:00:00.000Z" > }' > > I'm using the v2 subscriptions endpoint with the "attrsformat" = "legacy" instead of using v1 subscribeContext. Both should work according to the documentation (at http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html < http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html >). > > The Orion and Cygnus docker containers seems to run as expected but when I'm listing my subscriptions using > > curl "http://staging.familiohq.com:1026/v2/subscriptions < http://staging.familiohq.com:1026/v2/subscriptions >" \ > -H 'Fiware-ServicePath: /' > > I'm getting a failed status > > [ { > "id": "5a16bb600cd43be01f108c0c", > "description": "Event subscription", > "expires": "2020-12-31T00:00:00.00Z", > "status": "failed", > "subject": { > "entities": [ > { > "idPattern": ".*", > "type": "Event" > } > ], > "condition": { > "attrs": [] > } > }, > "notification": { > "timesSent": 3, > "lastNotification": "2017-11-23T12:14:04.00Z", > "attrs": [ > "location" > ], > "attrsFormat": "normalized", > "http": { > "url": "http://staging.familiohq.com:5050/notify <http://staging.familiohq.com:5050/notify>" > } , > "lastFailure": "2017-11-23T12:14:04.00Z" > }, > "throttling": 1 > } > ] > > Are you able to help me figure out what's causing the issue setting up the subscription or could you let me know if you need more information.. > > Thanks > > Peter from Watcher. > > > – > Peter Theill > CTO > +45 6171 5096 <tel:61%2071%2050%2096> > peter@familiohq.com < peter@familiohq.com > > > Familio > Artillerivej 86 > DK-2300 Copenhagen S > https://familiohq.com/ < https://familiohq.com/ > > – > Peter Theill > CTO > +45 6171 5096 <tel:61%2071%2050%2096> > peter@familiohq.com < peter@familiohq.com > > > Familio > Artillerivej 86 > DK-2300 Copenhagen S > https://familiohq.com/ < https://familiohq.com/ >
        fw.ext.user FW External User made changes -
        Hide
        fw.ext.user FW External User added a comment -

        Comment by peter@familiohq.com :

        Hi Fiware Tech,

        I figured out the notification issue so close this ticket, please.

        On Thu, Nov 23, 2017 at 1:59 PM Peter Theill <peter@familiohq.com> wrote:

        > I have an issue sending notifications from subscriptions I've setup on
        > Orion Object Broker.
        >
        > I've setup Orion and I'm able to create entities, etc without issues.
        >
        > Now I'm trying to setup a subscription so new entities will be send to
        > cygnus.
        >
        > In Orion I have an entity called "Event" and I'm trying to setup a
        > subscription so every time a new "Event" entity is created it will notify a
        > (cygnus ngsi) endpoint.
        >
        > This is my CURL for creating a subscription
        >
        > *curl -X "POST" "http://staging.familiohq.com:1026/v2/subscriptions
        > <http://staging.familiohq.com:1026/v2/subscriptions>" *
        > * -H 'Accept: application/json' *
        > * -H 'Fiware-ServicePath: /' *
        > * -H 'Content-Type: application/json' *
        > * -d $'{*
        > * "throttling": 1,*
        > * "subject": {*
        > * "entities": [*
        > * {*
        > * "type": "Event",*
        > * "idPattern": "."
        > * }*
        > * ]*
        > * },*
        > * "description": "Event subscription",*
        > * "notification": {*
        > * "attrs": [*
        > * "location"*
        > * ],*
        > * "http": {*
        > * "url": "http://staging.familiohq.com
        > <http://staging.familiohq.com>:5050/notify"*
        > * },*
        > * "attrsformat": "legacy"*
        > * },*
        > * "expires": "2020-12-31T00:00:00.000Z"*
        > }'
        >
        > I'm using the v2 subscriptions endpoint with the "attrsformat" = "legacy"
        > instead of using v1 subscribeContext. Both should work according to the
        > documentation (at
        > http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html
        > ).
        >
        > The Orion and Cygnus docker containers seems to run as expected but when
        > I'm listing my subscriptions using
        >
        > curl "http://staging.familiohq.com:1026/v2/subscriptions" \
        > -H 'Fiware-ServicePath: /'
        >
        > I'm getting a failed status
        >
        > [ {
        > "id": "5a16bb600cd43be01f108c0c",
        > "description": "Event subscription",
        > "expires": "2020-12-31T00:00:00.00Z",
        > * "status": "failed",*
        > "subject": {
        > "entities": [
        >

        { > "idPattern": ".*", > "type": "Event" > }

        > ],
        > "condition":

        { > "attrs": [] > }

        > },
        > "notification": {
        > "timesSent": 3,
        > "lastNotification": "2017-11-23T12:14:04.00Z",
        > "attrs": [
        > "location"
        > ],
        > "attrsFormat": "normalized",
        > "http":

        { > "url": "http://staging.familiohq.com:5050/notify" > }

        ,
        > "lastFailure": "2017-11-23T12:14:04.00Z"
        > },
        > "throttling": 1
        > }
        > ]
        >
        > Are you able to help me figure out what's causing the issue setting up the
        > subscription or could you let me know if you need more information..
        >
        > Thanks
        >
        > Peter from Watcher.
        >
        >
        > –
        > Peter Theill
        > CTO
        > +45 6171 5096 <61%2071%2050%2096>
        > peter@familiohq.com
        >
        > Familio
        > Artillerivej 86
        > DK-2300 Copenhagen S
        > https://familiohq.com/
        >

        Peter Theill
        CTO
        +45 6171 5096 <61%2071%2050%2096>
        peter@familiohq.com

        Familio
        Artillerivej 86
        DK-2300 Copenhagen S
        https://familiohq.com/

        Show
        fw.ext.user FW External User added a comment - Comment by peter@familiohq.com : Hi Fiware Tech, I figured out the notification issue so close this ticket, please. On Thu, Nov 23, 2017 at 1:59 PM Peter Theill <peter@familiohq.com> wrote: > I have an issue sending notifications from subscriptions I've setup on > Orion Object Broker. > > I've setup Orion and I'm able to create entities, etc without issues. > > Now I'm trying to setup a subscription so new entities will be send to > cygnus. > > In Orion I have an entity called "Event" and I'm trying to setup a > subscription so every time a new "Event" entity is created it will notify a > (cygnus ngsi) endpoint. > > This is my CURL for creating a subscription > > *curl -X "POST" "http://staging.familiohq.com:1026/v2/subscriptions > < http://staging.familiohq.com:1026/v2/subscriptions >" * > * -H 'Accept: application/json' * > * -H 'Fiware-ServicePath: /' * > * -H 'Content-Type: application/json' * > * -d $'{* > * "throttling": 1,* > * "subject": {* > * "entities": [* > * {* > * "type": "Event",* > * "idPattern": ". " > * }* > * ]* > * },* > * "description": "Event subscription",* > * "notification": {* > * "attrs": [* > * "location"* > * ],* > * "http": {* > * "url": "http://staging.familiohq.com > < http://staging.familiohq.com >:5050/notify"* > * },* > * "attrsformat": "legacy"* > * },* > * "expires": "2020-12-31T00:00:00.000Z"* > }' > > I'm using the v2 subscriptions endpoint with the "attrsformat" = "legacy" > instead of using v1 subscribeContext. Both should work according to the > documentation (at > http://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/installation_and_administration_guide/ngsiv2_support/index.html > ). > > The Orion and Cygnus docker containers seems to run as expected but when > I'm listing my subscriptions using > > curl "http://staging.familiohq.com:1026/v2/subscriptions" \ > -H 'Fiware-ServicePath: /' > > I'm getting a failed status > > [ { > "id": "5a16bb600cd43be01f108c0c", > "description": "Event subscription", > "expires": "2020-12-31T00:00:00.00Z", > * "status": "failed",* > "subject": { > "entities": [ > { > "idPattern": ".*", > "type": "Event" > } > ], > "condition": { > "attrs": [] > } > }, > "notification": { > "timesSent": 3, > "lastNotification": "2017-11-23T12:14:04.00Z", > "attrs": [ > "location" > ], > "attrsFormat": "normalized", > "http": { > "url": "http://staging.familiohq.com:5050/notify" > } , > "lastFailure": "2017-11-23T12:14:04.00Z" > }, > "throttling": 1 > } > ] > > Are you able to help me figure out what's causing the issue setting up the > subscription or could you let me know if you need more information.. > > Thanks > > Peter from Watcher. > > > – > Peter Theill > CTO > +45 6171 5096 <61%2071%2050%2096> > peter@familiohq.com > > Familio > Artillerivej 86 > DK-2300 Copenhagen S > https://familiohq.com/ > – Peter Theill CTO +45 6171 5096 <61%2071%2050%2096> peter@familiohq.com Familio Artillerivej 86 DK-2300 Copenhagen S https://familiohq.com/
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fw.ext.user FW External User created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: