Storage integration 2 days duration + weird bugs in API

Hi!

We’ll I’m trying to develop over TTN Storage integration and I have faced the following problem:

  1. If I don’t query over the current day when using after and before, I receive a 1 as a response.

(Being today the 4th of October)

https://nam1.cloud.thethings.network/api/v3/as/applications/apartment-weather-station/packages/storage/uplink_message?after=2021-09-01T00:00:00Z&before=2021-10-03T00:00:00Z

This response returns just a “1” (No data)

https://nam1.cloud.thethings.network/api/v3/as/applications/apartment-weather-station/packages/storage/uplink_message?after=2021-09-01T00:00:00Z&before=2021-10-04T00:00:00Z

This response returns data from the 2nd of October at 21:04 till today.

This brings me to the second question

  1. As you can see I only have data from the 2nd of October, so, how long does Storage integrations holds the data?

Many thanks!!

In The Things Stack Community Edition, the storage integration has a retention of roughly 24 hours (it may be a bit longer if the cleanup process hasn’t run yet).

This means that if you query data from before the retention window, you’ll indeed get an empty response.

Thanks!! everything makes sense now! maybe it could be added in the docs.