MobilityData / mobility-feed-api

Apache License 2.0
9 stars 3 forks source link

Empty search query with no additional parameter returns HTTP 500 #687

Closed davidgamez closed 3 months ago

davidgamez commented 3 months ago

Describe the bug

The search endpoint returns HTTP 500 Internal error when search_query is empty and no additional parameter is passed

Steps/Code to Reproduce

curl --location 'https://api-qa.mobilitydatabase.org//v1/search?search_query=' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer REPLACE_ME_WITH_ACCESS_TOKEN'

Expected Results

Returns all the feeds.

Actual Results

HTTP 500 error is returned.

Screenshots

No response

Files used

No response

Additional notes

No response

Alessandro100 commented 3 months ago

To note: This is only happens in postman, not doable in UI