Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 02-11-2018 at 10:11
Please, ANSWER this question AT https://stackoverflow.com/questions/53115702/fiware-orion-error-response-to-querycontext-is-empty
Question:
FIWARE Orion - Error: "Response to QueryContext is empty"
Description:
I have followed the NGSI API documentation and I'm using registrations to forward a query to a custom path which will handle it.
I'm working on the examples shown in the APIv2 Documentation. I have two containers running the Context broker on different ports.
In one of them I have created the Room1 asset, in the other I have created the registration for that asset.
I'm querying the second one for that identity, in the logs the following message appears:
orion2_1 | time=Friday 02 Nov 08:48:19 2018.704Z | lvl=WARN | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=postQueryContext.cpp[168]:queryForward | msg=Other Error (context provider response to QueryContext is empty)
This is the registration:
{
"id": "5bdc14dfcbe7f9fb0a95002e",
"description": "Registration for Room1",
"dataProvided": {
"entities": [
],
"attrs": [
"temperature",
"pressure"
]
},
"provider": {
"http":
,
"supportedForwardingMode": "all",
"legacyForwarding": true
},
"status": "active"
}
This is the Room1 entity:
{
"id": "Room1",
"type": "Room",
"pressure": {
"type": "Integer",
"value": 720,
"metadata": {}
},
"temperature": {
"type": "Float",
"value": 23,
"metadata": {}
}
}
Can anyone help me?
Activity
- All
- Comments
- History
- Activity
- Transitions
2018-11-02 12:06|CREATED monitor | # answers= 0, accepted answer= False