Describe the bug
The client currently tries to obtain the server version in its constructor. This defies the usage scenario of creating a client and then waiting for the server to complete booting:
because it won't even get to the ensure_available() due to the constructor bailing out at the end
try:
self.build_info = self.get_build_info()
except JSONDecodeError:
raise ValueError(
"The Client could not get information about the platform. This is likely because your API Token has changed."
)
self.spec_version = self.build_info["specVersion"]
Expected behavior
We need some way of obtaining the server version while still allowing to wait for the server to become available.
Describe the bug The client currently tries to obtain the server version in its constructor. This defies the usage scenario of creating a client and then waiting for the server to complete booting:
because it won't even get to the
ensure_available()
due to the constructor bailing out at the endExpected behavior We need some way of obtaining the server version while still allowing to wait for the server to become available.