Closed
Description
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
- add dependency (implementation "com.influxdb:influxdb-client-scala:1.8.0"), gradle in my case
- add influx2.properties file to classpath with connection settings
- invoke InfluxDBClientFactory.create().health in a main method
Expected behavior:
InfluxDBClientFactory.create().health().getStatus() should return pass
Actual behavior:
InfluxDBClientFactory.create().health().getStatus() returns fail, while in my logs I can see that response from instance health endpoint returned 200, and I am able to successfully write data using client instance
It might be some issue with reading json response, while underlying exception during execution of Call<HealthCheck>
says:
com.influxdb.exceptions.InfluxException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
Specifications:
- Client Version: 1.8.0
- InfluxDB Version: 2.0
- Platform: AWS