This is the first time that this happens. I’ve been running some data analysis scripts for some time without any problems but the past few days I’ve been trying to fetch messages from about a month ago and I randomly get an error 500 from the API.
The JSON response I get is:
“error”: “Error looking up messages. Try again later”
Fetching data from the past day or so works without any problem but if I ask for older data then it gives me a 500 error … most of the times.
Here is the query I send
There are ~30 devices reporting once a minute and I’m requesting 24 hours worth of messages which should be around 43000 messages.
So … is there a limit on how far back in time I can request messages from a device? Is it a performance issue when looking farther back in time that it takes long and fails?
I’ve now tried many combinations and fetching data between timestart-timeend works for:
timestart = 1564015000
timeend = 1564026400, up to 1564099999
But it doesn’t work for:
timestart = 1564020000
timeend = 1564100000
So, it doesn’t seem to be an issue with fetching old messages, it seems to be an issue with fetching MANY old messages.