influxdb-client-java icon indicating copy to clipboard operation
influxdb-client-java copied to clipboard

Exception in obtaining the client through username and password

Open kervin521 opened this issue 2 years ago • 1 comments
trafficstars

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

InfluxDBClientOptions.Builder builder = InfluxDBClientOptions.builder();
			builder.bucket(bucket);
			builder.org(org);
			builder.okHttpClient(builder());
builder.authenticate(username, password.toCharArray());
builder.url(uri);
InfluxDBClientImpl client = (InfluxDBClientImpl) InfluxDBClientFactory.create(builder.build());
InfluxDBClientReactiveImpl reactive = (InfluxDBClientReactiveImpl) InfluxDBClientReactiveFactory.create(builder.build());

Expected behavior: Describe what you expected to happen.

Actual behavior: Describe What actually happened.

Specifications:

  • Client Version:
  • InfluxDB Version:
  • JDK Version:
  • Platform:

kervin521 avatar Mar 03 '23 05:03 kervin521