-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
I am trying to check if the connection is valid or not. I can Ping the server and get a false or true, but I cannot read the version or the readiness of the server. Am I doing something wrong?
I would like to check the connection completely before I send other writing or reading requests.
Code
InfluxDBClientOptions.Builder builder = InfluxDBClientOptions.Builder.CreateNew();
builder.Url("https://westeurope-1.azure.cloud2.influxdata.com");
builder.AuthenticateToken(token);
builder.Bucket(bucket);
builder.Org(org);
using var client = InfluxDBClientFactory.Create(builder.Build());
var healthCheck = client.PingAsync().Result;
var ready = client.ReadyAsync().Result;
var version = client.VersionAsync().Result;
Steps to reproduce:
- request ReadyAsync on an influxdbclient
- request VersionAsync on an influxdbclient
Expected behavior:
- Gives state of the readiness
- Return version value
Actual behavior:
- Returns 'null'
- Returns 'unknown'
Specifications:
- Client Version: 3.3.0
- InfluxDB Version: unknown
- Platform: InfluxDB Cloud
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working