[ https://jira.fiware.org/browse/HELP-15854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez resolved HELP-15854. ----------------------------------- > [fiware-stackoverflow] Fiware QuantumLeap Notification and payload successfully processed and received but not stored in the database > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: HELP-15854 > URL: https://jira.fiware.org/browse/HELP-15854 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: MARTEL > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 27-05-2019 at 15:05 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/56326638/fiware-quantumleap-notification-and-payload-successfully-processed-and-received > +Question:+ > Fiware QuantumLeap Notification and payload successfully processed and received but not stored in the database > +Description:+ > I am trying to visualize context data using Grafana through Fiware component QuantumLeap, > When I use QuantumLeap API to post a notification MANUALLY using cURL, the notification is received and the data is stored correctly. > fiware-quantumleap | INFO:reporter.reporter:Received payload: {'id': 'urn:ngsi-ld:tempHumid:001', 'type': 'tempHumid', 'deviceState': {'type': 'Text', 'value': 'NEW MESSAGE HERE', 'metadata': {'dateCreated': {'type': 'DateTime', 'value': '2019-05-27T11:53:22.00Z'}, 'dateModified': {'type': 'DateTime', 'value': '2019-05-27T12:47:35.00Z'}}}} > fiware-quantumleap | INFO:reporter.reporter:Notification successfully processed > fiware-quantumleap | 172.18.1.7 - - [27/May/2019 12:47:36] "POST /v2/notify HTTP/1.1" 200 - > fiware-quantumleap | INFO:werkzeug:172.18.1.7 - - [27/May/2019 12:47:36] "POST /v2/notify HTTP/1.1" 200 - > But when the data passes through Orion, it is being received by the Orion Context Broker successfully and is then transmitted to QuantumLeap where it displays that both payload and notification are received but fails to be persisted, and queried unlike when it was manually posted using cURL. > fiware-orion | INFO at 12:51:06 httpRequestSend.cpp[612]: Notification Successfully Sent to http://172.18.1.6:8668/v2/notify > fiware-orion | INFO at 12:51:06 httpRequestSend.cpp[621]: Notification response OK, http code: 200 > fiware-orion | INFO at 12:51:06 connectionOperations.cpp[449]: Database Operation Successful (update: <{ _id: ObjectId('5cebd43d3c7cb98b5b0641cf'), $or: [ { lastNotification: { $lt: 1558961466 } }, { lastNotification: { $exists: false } } ] }, { $set: { lastNotification: 1558961466 } }>) > I have tried to match the URL used when I posted notification using cURL and > the one I precised while creating the subscription to Orion. > so basically I get the same messages in the logs when I try to post a notification either manually with cURL or through Orion, but using the cURL method I am able to query and access the stored data, Orion is successfully notifying quantumLeap but the message received is not being posted and persisted in the DB. > Thank you :) -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy