typedb / typedb-driver

TypeDB Drivers for Rust, Python, Java, Node.js, C, C++, and C#.
https://typedb.com
Apache License 2.0
38 stars 33 forks source link

Detect incompatibility and raise a relevant exception #25

Closed sorsaffari closed 1 year ago

sorsaffari commented 5 years ago

Problem to Solve

When there is an incompatibility between Client Java and the running Grakn Server, the exception thrown by the client seems unrelated to the real cause of the problem. In fact, the error message may even be incorrect, given that the keyspace does exist with the given name.

Current Workaround

If encountering this exception for the first time, only searching the web or asking the community can lead the user to the solution.

Proposed Solution

Have Client Java to identify the incompatibility and throw an exception with a helpful message. e.g. Client Java version 1.5.3 does not support the running Grakn Core server. Please refer to the documentation of client Java to ensure compatibility.

Additional Information

N/A

alexjpwalker commented 3 years ago

This issue is still relevant in 2.0.

alexjpwalker commented 3 years ago

The discussion from https://github.com/graknlabs/client-nodejs/issues/47 may be of relevance here.

alexjpwalker commented 3 years ago

To summarise:

We should also consider:

alexjpwalker commented 2 years ago
flyingsilverfin commented 1 year ago

Implemented in #421