USACE / instrumentation

Instrumentation project issue tracking and project planning
MIT License
4 stars 1 forks source link

GET `/measurements` request hangs for computed ts w/o `before` and `after` params #151

Open dennisgsmith opened 6 months ago

dennisgsmith commented 6 months ago

Describe the bug

GET /timeseries/:timeseries_id/measurements hangs without before and after query parameters, the search will default to the past week. If there are haven’t been any records for that timeseries in while, a request for a “computed” timeseries can take a long time to complete and eventually time out.

Expected behavior

Request should not return data if there is none in range.

Actual behavior

Request hangs indefinitely.

Temporary Workaround

For now, please supply “before” and “after” timestamps to the endpoint for the time range of data requested.