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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Assignee | Jose Manuel Cantera [ jmcantera ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Summary | [fiware-stackoverflow] FIWARE Orion - Error: "Response to QueryContext is empty" | FIWARE.Question.Tech.FIWARE Orion - Error: "Response to QueryContext is empty". |
HD-Enabler | Orion [ 10875 ] | |
Description |
Created question in FIWARE Q/A platform on 02-11-2018 at 10:11 {color: red}Please, ANSWER this question AT{color} 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": [ { "id": "Room1", "type": "Room" } ], "attrs": [ "temperature", "pressure" ] }, "provider": { "http": { "url": "http://192.168.1.100:8000/v2" }, "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? |
Created question in FIWARE Q/A platform on 02-11-2018 at 10:11
{color: red}Please, ANSWER this question AT{color} 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": [ { "id": "Room1", "type": "Room" } ], "attrs": [ "temperature", "pressure" ] }, "provider": { "http": { "url": "http://192.168.1.100:8000/v2" }, "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? |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
11d 4h 14m | 1 | Jose Manuel Cantera | 13/Nov/18 4:20 PM | |||||
|
3s | 1 | Jose Manuel Cantera | 13/Nov/18 4:20 PM | |||||
|
2s | 1 | Jose Manuel Cantera | 13/Nov/18 4:20 PM |
2018-11-02 12:06|CREATED monitor | # answers= 0, accepted answer= False