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

[fiware-stackoverflow] Orion Context Broker Post ":" character

    Details

      Description

      Created question in FIWARE Q/A platform on 25-01-2019 at 14:01
      Please, ANSWER this question AT https://stackoverflow.com/questions/54366152/orion-context-broker-post-character

      Question:
      Orion Context Broker Post ":" character

      Description:
      When I make a POST call to the Orion Context Broker and the entity
      "type": "geo:json" contains the ":" character I obtain:

      {"error":"InternalError","description":"Database Error (collection: orion-carouge.entities - insert(): { _id: { id: "10_Place_Nations"....

      curl -X POST \
      http://<entityID>:port/v2/entities \
      -H 'Content-Type: application/json' \
      -H 'fiware-service:carouge' \
      -H 'Fiware-ServicePath:/Traffic' \
      -d '{ "type":

      { "value": "Traffic" }

      ,
      "dateObserved":

      { "value": "2019-05-22T21:26:00" }

      ,
      "id": "10_Place_Nations",
      "location": {
      "value":

      { "coordinates": [ [ 6.130983321064038, 46.21602766413273 ] ], "type" : "Point" }

      ,
      "type": "geo:json"
      },

      }'\

      Apparently this is not a problem in the MongoDB of Orion. I am able to insert the "type": "geo:json" in the MongoDB. Probably some validation before making the post call, cause the problem. Any contribution will be very appreciated.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2d 1 Backlog Manager 27/Jan/19 3:05 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 27/Jan/19 6:06 PM
        Answered Answered Closed Closed
        65d 13h 48m 1 José Ignacio Carretero Guarde 03/Apr/19 8:54 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        jicg José Ignacio Carretero Guarde made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 25-01-2019 at 14:01
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54366152/orion-context-broker-post-character


        +Question:+
        Orion Context Broker Post ":" character

        +Description:+
        When I make a POST call to the Orion Context Broker and the entity
         "type": "geo:json" contains the ":" character I obtain:

        {"error":"InternalError","description":"Database Error (collection: orion-carouge.entities - insert(): { _id: { id: "10_Place_Nations"....

        curl -X POST \
         http://<entityID>:port/v2/entities \
         -H 'Content-Type: application/json' \
         -H 'fiware-service:carouge' \
         -H 'Fiware-ServicePath:/Traffic' \
         -d '{ "type": {
            "value": "Traffic"
         },
         "dateObserved": {
           "value": "2019-05-22T21:26:00"
         },
         "id": "10_Place_Nations",
         "location": {
           "value": {
             "coordinates": [
               [
                 6.130983321064038,
                 46.21602766413273
               ]
             ],
             "type" : "Point"
           },
           "type": "geo:json"
         },

        }'\


        Apparently this is not a problem in the MongoDB of Orion. I am able to insert the "type": "geo:json" in the MongoDB. Probably some validation before making the post call, cause the problem. Any contribution will be very appreciated.
        Created question in FIWARE Q/A platform on 25-01-2019 at 14:01
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54366152/orion-context-broker-post-character


        +Question:+
        Orion Context Broker Post ":" character

        +Description:+
        When I make a POST call to the Orion Context Broker and the entity
         "type": "geo:json" contains the ":" character I obtain:

        {"error":"InternalError","description":"Database Error (collection: orion-carouge.entities - insert(): { _id: { id: "10_Place_Nations"....

        curl -X POST \
         http://<entityID>:port/v2/entities \
         -H 'Content-Type: application/json' \
         -H 'fiware-service:carouge' \
         -H 'Fiware-ServicePath:/Traffic' \
         -d '{ "type": {
            "value": "Traffic"
         },
         "dateObserved": {
           "value": "2019-05-22T21:26:00"
         },
         "id": "10_Place_Nations",
         "location": {
           "value": {
             "coordinates": [
               [
                 6.130983321064038,
                 46.21602766413273
               ]
             ],
             "type" : "Point"
           },
           "type": "geo:json"
         },

        }'\


        Apparently this is not a problem in the MongoDB of Orion. I am able to insert the "type": "geo:json" in the MongoDB. Probably some validation before making the post call, cause the problem. Any contribution will be very appreciated.
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-01-27 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-01-27 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-01-27 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-01-27 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-01-25 15:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-01-25 15:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          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: