Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

/api/geodata route throws 500 #157

Open
bariela opened this issue Sep 13, 2022 · 0 comments
Open

/api/geodata route throws 500 #157

bariela opened this issue Sep 13, 2022 · 0 comments

Comments

@bariela
Copy link
Collaborator

bariela commented Sep 13, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant