After upgrading our Discourse instance to version 2.9.0.beta4 it seems that API query parameter order=email
causes an internal server error.
This curl command worked fine before upgrading:
curl \
--header "Accept: application/json" \
--header "Api-Key: MY_API_KEY" \
--header "Api-Username: MY_USERNAME" \
--header "Content-Type: application/json" \
--request "GET" \
--silent \
--url "https://MY-SERVER/admin/users/list/active?asc=true&order=email&page=1&show_emails=true"
However, after upgrading it returns this error:
{"status":500,"error":"Internal Server Error"}
When I remove query parameter order=email
from the URL I do get results but not sorted by email address (which is what I need).
Is this a known bug? Is there a workaround or solution?