[Fiware-tech-help] tech question on STH-comet

Ypma, Wout (ext) wout.ypma.external at atos.net
Wed Feb 20 14:57:56 CET 2019


Hello,
I’m currently using a setup with orion->cygnus-> mongo <-sth-comet.
I’d like to use the API of sth-comet to query the mongodb data stored by Cygnus. Currently, the data is landing fine in mongo, but I’m not able to query the data with sth-comet. When I send a query to sth-comet I get a statuscode 200 with body:

{
    "contextResponses": [
        {
            "contextElement": {
                "attributes": [
                    {
                        "name": "temperature",
                        "values": []
                    }
                ],
                "id": "einaireas14",
                "isPattern": false,
                "type": "AirQualityObserved"
            },
            "statusCode": {
                "code": "200",
                "reasonPhrase": "OK"
            }
        }
    ]
}

In the sth-comet container I can see the following error:

DEBUG GET /STH/v1/contextEntities/type/AirQualityObserved/id/einaireas14/attributes/temperature?hLimit=3&hOffset=0&dateFrom=2019-02-18T00:00:00.000Z&dateTo=2019-02-18T23:59:59.999Z { corr: '2fcffad3-62d9-48b7-b991-c43abd9d0bb8',
        trans: '2fcffad3-62d9-48b7-b991-c43abd9d0bb8',
        op: 'OPER_STH_GET',
        from: 'n/a',
        srv: 'default',
        subsrv: '/',
        comp: 'STH' }
DEBUG Getting access to the raw data collection for retrieval... { corr: '2fcffad3-62d9-48b7-b991-c43abd9d0bb8',
        trans: '2fcffad3-62d9-48b7-b991-c43abd9d0bb8',
        op: 'OPER_STH_GET',
        from: 'n/a',
        srv: 'default',
        subsrv: '/',
        comp: 'STH' }
WARN  Error when getting the raw data collection for retrieval (the collection 'null' may not exist) { corr: '2fcffad3-62d9-48b7-b991-c43abd9d0bb8',
        trans: '2fcffad3-62d9-48b7-b991-c43abd9d0bb8',
        op: 'OPER_STH_GET',
        from: 'n/a',
        srv: 'default',
        subsrv: '/',
        comp: 'STH' }

I am not able to figure out why the collection name that sth comet is looking for is ‘null’. Im not violating any database/collection naming rules of mongodb as far as I can see. Could you tell me what is going on?

Regards,
Ir. Wout Ypma
Data Scientist
M: +31 6 36197510
linkedin.com/in/wout-ypma/<http://www.linkedin.com/in/wout-ypma/>

Burgemeester Rijnderslaan 30,
1185 MC Amstelveen
www.atos.net<https://webmail.it-solutions.atos.net/owa/redir.aspx?C=r1Ld3x2IXCqFMziNZJKhx7pBoXRKGiBVBAM2FIl3_lo0POJ_ZuXUCA..&URL=http%3a%2f%2fwww.atos.net%2f>

[cid:image001.jpg at 01D429B6.C19F3450][cid:A8443A530474CD45AF88DE1F9C432419 at eurprd02.prod.outlook.com]



This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, Atos’ liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. On all offers and agreements under which Atos Nederland B.V. supplies goods and/or services of whatever nature, the Terms of Delivery from Atos Nederland B.V. exclusively apply. The Terms of Delivery shall be promptly submitted to you on your request.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20190220/07c1cd56/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture (Device Independent Bitmap) 1.jpg
Type: image/jpeg
Size: 2012 bytes
Desc: Picture (Device Independent Bitmap) 1.jpg
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20190220/07c1cd56/attachment.jpg>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy