Skip to content

Surface DatabaseNotFound on routing message to user - #519

Merged
technige merged 3 commits into
neo4j:4.3from
robsdedude:raise-missing-db-on-route
Mar 31, 2021
Merged

technige merged 3 commits into
neo4j:4.3from
robsdedude:raise-missing-db-on-route

Conversation

@robsdedude

Copy link
Copy Markdown
Member

Failing to get a routing table because the user requests it for a non-existent DB would cause the driver to raise a ServiceUnavailable("Routing support broken on server ..."). This is not very helpful. This PR will change it so that the original error (Neo4jError with code Neo.ClientError.Database.DatabaseNotFound) is surfaced to the user.

@robsdedude
robsdedude requested a review from technige March 31, 2021 09:43
@technige
technige merged commit 53cbd08 into neo4j:4.3 Mar 31, 2021
@robsdedude
robsdedude deleted the raise-missing-db-on-route branch July 21, 2021 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants