openSenseMap-API icon indicating copy to clipboard operation
openSenseMap-API copied to clipboard

/boxes?date= returns nothing

Open noerw opened this issue 8 years ago • 2 comments

https://api.opensensemap.org/boxes?date=2017-08-06T00:00:00Z,2017-08-10T12:49:51Z

noerw avatar Aug 15 '17 09:08 noerw

sometimes an empty response is returned, sometimes

{"code":"InternalServerError","message":"connection 16 to 172.31.46.193:27017 timed out"}

noerw avatar Aug 24 '17 11:08 noerw

Seems the aggregation executed when requesting the route with date parameters does not receive data in time thus timing out. (https://github.com/sensebox/openSenseMap-API/blob/42a55ec1b78a976cf58bdfa93007d31591287972/lib/controllers/boxesController.js#L530-L548)

I have no particular plans, but in the long run I have to think about speeding up the aggregation or using some trick to cache the information if there is data for a particular timeframe or not.

ubergesundheit avatar Aug 24 '17 11:08 ubergesundheit