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-01-2015 at 10:01
Please, ANSWER this question AT http://stackoverflow.com/questions/28147259/subscription-doesnt-appear-although-success-is-reported
Question:
Subscription doesn't appear although success is reported
Description:
I'm trying to create a subscription for attributes of an existing entity in OrionCB.
URL
http://130.206.80.120:1026/NGSI10/subscribeContext
Method
POST
Headers
Content-Type: application/xml
Body
<?xml version="1.0"?>
<subscribeContextRequest>
<entityIdList>
<entityId type="finesce_meteo" isPattern="false">
<id>finesce_meteo</id>
</entityId>
</entityIdList>
<attributeList>
<attribute>precip</attribute>
</attributeList>
<reference>http://localhost:5050/notify</reference>
<duration>P100Y</duration>
<notifyConditions>
<notifyCondition>
<type>ONCHANGE</type>
<condValueList>
<condValue>precip</condValue>
</condValueList>
</notifyCondition>
</notifyConditions>
<throttling>PT5S</throttling>
</subscribeContextRequest>
This operation retrieves 200 OK headers code, with this body:
<subscribeContextResponse>
<subscribeResponse>
<subscriptionId>54c5f049286043784451d08b</subscriptionId>
<duration>P100Y</duration>
<throttling>PT5S</throttling>
</subscribeResponse>
</subscribeContextResponse>
The problem is when I'm trying to check if it's created. When I'm trying to list subscriptions, it doesn't appears. I'm using this line:
echo 'db.csubs.find().pretty()' | mongo orion
But if I delete this subscription with unsubscribeContextRequest, I get 200 OK code. It suggests this subscription exists.
The fact a subscription exists (because it's created and deleted ok), and not appears any moment when i listing subscriptions, is rare.
Please, is there something wrong?
I'm trying this whit cygnus proccess started, and the same process with cygnus stopped, obtaining the same result.
Regards
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1s | 1 | Backlog Manager | 28/Sep/15 10:35 AM | |||||
|
1h 28m | 1 | Backlog Manager | 28/Sep/15 12:04 PM | |||||
|
2d 5h 59m | 1 | Backlog Manager | 30/Sep/15 6:04 PM |
Fix Version/s | 2021 [ 12600 ] |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Summary | FIWARE.Question.Tech.Data.OrionContextBroker.SubhscriptionDoesNotAppearAlthoug | FIWARE.Question.Tech.Data.OrionContextBroker.SubscriptionDoesNotAppearWhenIsCreated |
Summary | FIWARE.Question.Lab.Subscription doesn't appear although success is reported | FIWARE.Question.Tech.Data.OrionContextBroker.SubhscriptionDoesNotAppearAlthoug |
Assignee | Fermín Galán [ fermin ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | In Progress [ 3 ] |
2015-09-30 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True