[ https://jira.fiware.org/browse/HELP-15363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez updated HELP-15363: ---------------------------------- 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. was: 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. HD-Enabler: Orion > [fiware-stackoverflow] Orion Context Broker Post ":" character > ------------------------------------------------------------------------ > > Key: HELP-15363 > URL: https://jira.fiware.org/browse/HELP-15363 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Backlog Manager > Labels: fiware, fiware-orion, post > > 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. -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy