Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 26-06-2015 at 09:06
Please, ANSWER this question AT http://stackoverflow.com/questions/31067223/invalid-characters-for-orion-context-broker
Question:
Invalid characters for orion Context Broker
Description:
I make some calls to context broker to create elements, but sometimes I get the following error:
{
"errorCode":
}
I have done some tests and I have discovered that there are some characters which you get that error.
I found that with "(", ")", "'", ">" , "<",... characters in the value of an attribute return that error.
This is an example of an entity creation that return the error :
(curl localhost:1026/v1/updateContext s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @ | python -mjson.tool) <<EOF
{
"contextElements": [
{
"type": "Room",
"isPattern": "false",
"id": "Room1",
"attributes": [
,
,
{ "name": "floor", "type": "string", "value": "3 (B)" } ]
}
],
"updateAction": "APPEND"
}
EOF
2015-09-28 13:24|CREATED monitor | # answers= 1, accepted answer= True