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 08-08-2016 at 12:08
Please, ANSWER this question AT https://stackoverflow.com/questions/38826682/fiware-orion-context-broker-cannot-create-subscription-callback-is-missing
Question:
FIWARE - Orion Context Broker - Cannot create subscription - Callback is missing
Description:
I'm working with the Orion Context Broker and I'm trying to add a new subscription but I'm getting an error that the callback is missing even though I have provided one.
Here are the entities that I have
$ curl localhost:1026/v2/entities -s -S --header 'Accept: application/json' | python -mjson.tool
[
{
"id": "Room1",
"pressure": {
"metadata": {},
"type": "Integer",
"value": 720
},
"temperature": {
"metadata": {},
"type": "Float",
"value": 23
},
"type": "Room"
},
{
"id": "Room2",
"pressure": {
"metadata": {},
"type": "Integer",
"value": 711
},
"temperature": {
"metadata": {},
"type": "Float",
"value": 21
},
"type": "Room"
}
]
And here is the call to create a new subscription and subsequent error:
$ curl -v localhost:1026/v2/subscriptions -s -S --header 'Content-Type: application/json' \
> d @ <<EOF
> {
> "description": "A subscription to get info about Room1",
> "subject": {
> "entities": [
>
> ],
> "condition":
> },
> "notification": {
> "http":
,
> "attrs": [
> "temperature",
> "pressure"
> ]
> },
> "expires": "2040-01-01T14:00:00.00Z",
> "throttling": 5
> }
> EOF
- Hostname was NOT found in DNS cache
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 1026 (#0)
> POST /v2/subscriptions HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:1026
> Accept: /
> Content-Type: application/json
> Content-Length: 417
> - upload completely sent off: 417 out of 417 bytes
< HTTP/1.1 400 Bad Request
< Connection: Keep-Alive
< Content-Length: 58
< Content-Type: application/json
< Date: Mon, 08 Aug 2016 10:11:39 GMT
< - Connection #0 to host localhost left intact {"error":"BadRequest","description":"callback is missing"}
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 56m | 1 | Backlog Manager | 22/May/17 6:07 PM | |||||
|
3h | 1 | Backlog Manager | 22/May/17 9:08 PM |
Fix Version/s | 2021 [ 12600 ] |
Assignee | Backlog Manager [ backlogmanager ] |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
2017-05-22 21:09|UPDATED status: transition Finish| # answers= 1, accepted answer= True