Using "sortby":"category" results in an internal server error
koebi opened this issue · 2 comments
koebi commented
This problem has been reported by a user in the ask-forum and can be reproduced via the playground:
Removing sortby
or switching to distance
makes the problem disappear.
koebi commented
This problem seems to have existed for a bit…
I think the problem is that the query used for requesting pois is
openpoiservice/openpoiservice/server/api/query_builder.py
Lines 76 to 79 in 0bc26a9
which does not include any information about categories.
When defining what to sort by, however, it tries to use the category
column from the query above, which does not exist:
I don't know how to fix this though…