I run a dating app and use Placeholder to allow users to manually enter their location, or find a location to search. Sometimes users do interesting things, such as entering queries like this:
Obviously this is not an optimal placename search, but we can't control users. With live mode enabled, I get an HTML error message, even if I request accept: application/json (seems to have no effect.)
Describe the bug
I run a dating app and use Placeholder to allow users to manually enter their location, or find a location to search. Sometimes users do interesting things, such as entering queries like this:
Obviously this is not an optimal placename search, but we can't control users. With live mode enabled, I get an HTML error message, even if I request
accept: application/json
(seems to have no effect.)If you turn off live mode, the result is actually pretty close to what the user desires, including Chicago as the first returned result.
Steps to Reproduce
As noted above, run the example query with live mode.
Expected behavior
There is no SQL error and the response is at least valid JSON, even if just an empty set.
Environment (please complete the following information):
Official docker image, version
3.12.0
.