Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default query with no startDate is empty #32

Closed
eydrian opened this issue Aug 11, 2022 · 3 comments
Closed

Default query with no startDate is empty #32

eydrian opened this issue Aug 11, 2022 · 3 comments

Comments

@eydrian
Copy link

eydrian commented Aug 11, 2022

Since a while it seems that the default queries return empty results. Only by specifying a startDate that is in the past (multiple days) the request returns data.
My integration is broken for a while but did not find the time to check.
Is there a change needed in order to get the current values?

empty results:

curl -X 'GET' \
  'https://tecdottir.herokuapp.com/measurements/tiefenbrunnen?sort=timestamp_cet%20desc&limit=500&offset=0' \
  -H 'accept: application/json'

compared to:

curl -X 'GET' \
  'https://tecdottir.herokuapp.com/measurements/tiefenbrunnen?startDate=2022-08-05&sort=timestamp_cet%20desc&limit=500&offset=0' \
  -H 'accept: application/json'
@metaodi
Copy link
Owner

metaodi commented Aug 11, 2022

Unfortunately the data provider stopped returning data, so the latest available data is from a couple days ago.
I'm working on it, and hopefully this issue is resolved soon.

@metaodi
Copy link
Owner

metaodi commented Sep 21, 2022

The data is back again. But I will make sure an empty startDate will always return the latest data.

@metaodi
Copy link
Owner

metaodi commented Sep 22, 2022

Fixed in 1.4.1, now there is no default value for startDate or endDate instead the latest available data is returned.

@metaodi metaodi closed this as completed Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants