You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, looks like Alerce queries are failing because they have changed their query string requirements; I'm getting the same error if I submit the query from a test TOM.
The specific errors produced are:
{"errors": {"order_by": "Column used for ordering The value 'None' is not a valid choice for 'order_by'."}, "message": "Input payload validation failed"}
{"errors": {"order_mode": "Ordering could be ascendent or descendent The value 'None' is not a valid choice for 'order_mode'."}, "message": "Input payload validation failed"}
These two key words appear to be the problem in my query. According to the Alerce API documentation both of these parameters accept a range of set values but cannot be None.
These parameters also don't appear to be essential, I suggest the parameters simply be removed from the query string, or use default values of:
order_by: oid
order_mode: ASC
Describe the bug
Running an Alerce query (query 10, Galactic Bulge query) from tom-demo-dev's UI produces the following error:
400 Client Error: BAD REQUEST for url: https://api.alerce.online/ztf/v1/objects/?count=false&order_by=None&order_mode=None&page=1&page_size=20&ra=17.5&dec=-27.0&radius=60
To Reproduce
Expected behavior
I expect the query to return a list of targets or an empty list indicating there were no targets found.
Desktop (please complete the following information):
Additional context
Would be nice to fix, but not super urgent.
The text was updated successfully, but these errors were encountered: