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

FIWARE.Question.Tech.STH getting historical raw context.

    Details

      Description

      Created question in FIWARE Q/A platform on 24-08-2017 at 19:08
      Please, ANSWER this question AT https://stackoverflow.com/questions/45867677/sth-getting-historical-raw-context

      Question:
      STH getting historical raw context

      Description:
      I installed Orion and Fiware STH in order to use the minimalistic option.

      The problem is that when i subscribe to an orion context then consult, the array is null.

      "name": "temperature",
      "values": []

      In the STH log it says:

      ERROR when collecting the raw data collection for retrieval (the collection may not exist).

      I noticed that when i try to unsubscribe it returns a 200 OK message with the following body:

      {
      "subscriptionId": "xxx",
      "statusCode":

      { "code": "404", "reasonPhrase": "No context element found", "details": "subscriptionId: /xxx/" }

      }

      EDIT: The request URL is:
      192.168.60.117:8080/STH/v1/contextEntities/type/room/id/Room‌​1/

      (In my case the type is "room" and not "Room"). The headers are Accept,
      Content-Type, Fiware-Service, Fiware-ServicePath

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        6d 16h 35m 1 Andres Muñoz 19/Jan/18 12:24 PM
        In Progress In Progress Answered Answered
        2h 41m 1 Backlog Manager 19/Jan/18 3:05 PM
        Answered Answered Closed Closed
        2d 20h 45m 1 Andres Muñoz 22/Jan/18 11:51 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler STH-Comet [ 11303 ]
        Description
        Created question in FIWARE Q/A platform on 24-08-2017 at 19:08
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/45867677/sth-getting-historical-raw-context


        +Question:+
        STH getting historical raw context

        +Description:+
        I installed Orion and Fiware STH in order to use the minimalistic option.

        The problem is that when i subscribe to an orion context then consult, the array is null.

        "name": "temperature",
        "values": []


        In the STH log it says:


          ERROR when collecting the raw data collection for retrieval (the collection may not exist).


        I noticed that when i try to unsubscribe it returns a 200 OK message with the following body:

        {
            "subscriptionId": "xxx",
            "statusCode": {
                "code": "404",
                "reasonPhrase": "No context element found",
                "details": "subscriptionId: /xxx/"
            }
        }


        EDIT: The request URL is:
            192.168.60.117:8080/STH/v1/contextEntities/type/room/id/Room‌​1/

        (In my case the type is "room" and not "Room"). The headers are Accept,
        Content-Type, Fiware-Service, Fiware-ServicePath

        Created question in FIWARE Q/A platform on 24-08-2017 at 19:08
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/45867677/sth-getting-historical-raw-context


        +Question:+
        STH getting historical raw context

        +Description:+
        I installed Orion and Fiware STH in order to use the minimalistic option.

        The problem is that when i subscribe to an orion context then consult, the array is null.

        "name": "temperature",
        "values": []


        In the STH log it says:


          ERROR when collecting the raw data collection for retrieval (the collection may not exist).


        I noticed that when i try to unsubscribe it returns a 200 OK message with the following body:

        {
            "subscriptionId": "xxx",
            "statusCode": {
                "code": "404",
                "reasonPhrase": "No context element found",
                "details": "subscriptionId: /xxx/"
            }
        }


        EDIT: The request URL is:
            192.168.60.117:8080/STH/v1/contextEntities/type/room/id/Room‌​1/

        (In my case the type is "room" and not "Room"). The headers are Accept,
        Content-Type, Fiware-Service, Fiware-ServicePath

        HD-Chapter Data [ 10838 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] STH getting historical raw context FIWARE.Question.Tech.STH getting historical raw context.
        andres.munoza Andres Muñoz made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-19 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-19 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        andres.munoza Andres Muñoz made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        andres.munoza Andres Muñoz added a comment -

        Hello,

        It looks like more a problem when you make the subscription to ORION than when the data is processed by STH, you can find how to make the subscription in Orion and how to notify to STH in this link: https://fiware-sth-comet.readthedocs.io/en/latest/data-storage/index.html, Also, if you provide more information of how you make the subscription and the logs I could have a better view of where is the problem and I can help you in a better way.

        Show
        andres.munoza Andres Muñoz added a comment - Hello, It looks like more a problem when you make the subscription to ORION than when the data is processed by STH, you can find how to make the subscription in Orion and how to notify to STH in this link: https://fiware-sth-comet.readthedocs.io/en/latest/data-storage/index.html , Also, if you provide more information of how you make the subscription and the logs I could have a better view of where is the problem and I can help you in a better way.
        joaquin.salvachua Joaquín Salvachúa made changes -
        Assignee Joaquín Salvachúa [ joaquin.salvachua ] Andres Muñoz [ andres.munoza ]
        aalonsog Alvaro Alonso made changes -
        Assignee Alvaro Alonso [ aalonsog ] Joaquín Salvachúa [ joaquin.salvachua ]
        fla Fernando Lopez made changes -
        Assignee Alvaro Alonso [ aalonsog ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:49|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:49|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            andres.munoza Andres Muñoz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: