openaq / openaq-api-v2

OpenAQ API
https://api.openaq.org
43 stars 9 forks source link

Averages endpoint returns error 500, when using temporal as parameter #321

Closed MauriceHeinze closed 8 months ago

MauriceHeinze commented 8 months ago

Hi,

the following query leads to an error 500: https://api.openaq.org/v2/averages?temporal=year&date_to=2024-01-09&date_from=2023-01-09&locations_id=3162&spatial=location.

Error message I get back: { "detail": "'<=' not supported between instances of 'dict' and 'int'" }

This error occurs only as long as I'm using the temporal parameter. Also tested on your API discovery page, but same issue here.

Hope this can be fixed and looking forward to hearing from you.

Best, Maurice

russbiggs commented 8 months ago

Hi @MauriceHeinze Thanks for reporting this issue. We'll take a look and try to get this resolved.

russbiggs commented 8 months ago

@MauriceHeinze This issue should be resolved in today's release.