openkfw / Oscar

A digital decision support system for humanitarian operations
https://www.oscarplatform.org/
GNU General Public License v3.0
11 stars 1 forks source link

/api/geodata route throws 500 #157

Open bariela opened 1 year ago

bariela commented 1 year ago

Describe the bug When requesting not existing database table, API returns INTERNAL SERVER ERROR if used with postgis database and empty array for mongoDb it should return NOT FOUND

To Reproduce Steps to reproduce the behavior:

  1. Run application
  2. Send REST request to '/api/geodata/name_of_not_existing_table'
  3. See error

Expected behavior API should return error NOT FOUND