GIScience / ohsome-quality-api

Data quality estimations for OpenStreetMap
https://api.quality.ohsome.org
GNU Affero General Public License v3.0
35 stars 7 forks source link

DB connection error handling #781

Open matthiasschaub opened 4 months ago

matthiasschaub commented 4 months ago

If DB client can not connect to database, the following error gets raised:

    raise OSError('Multiple exceptions: {}'.format(
OSError: Multiple exceptions: [Errno 111] Connect call failed ('127.0.0.1', 5445), [Errno 99] Cannot assign requested address

This error is not handled. The API will return 500 status code. The dashboard does not handle this status code and spins indefinitely.