Skip to content

Good error messages when connecting to wrong Distribution type #518

Open
@flyingsilverfin

Description

@flyingsilverfin

Problem to Solve

We currently cannot show good error messages if accidentally connecting a Driver to the wrong edition. For example:

driver = TypeDB.coreDriver("<url for enterprise server")

Will simply reject the connection because of missing credentials.

In the other direction, the credential might be ignored but methods that are expected to work, such as user management, will throw.

Proposed Solution

We should validate that the server we are connecting to is the right distribution type. However, this is quite hard since Enterprise may be expecting a TLS connection. To resolve this, we may have to create a open TypeDB port, separately from the standard driver port, just to expose server information.

We should also consider interpreting the error that is thrown to the driver and printing out something like "This maybe because the distribution is the the wrong type".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions