GIScience / GIScience/ohsome-quality-api

DB connection error handling

Open
#781 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
51
Forks
7
Avg merge
21h 54m
Merged PRs (30d)
9

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.