Skip to content

Client connects and able to write, but health check returns fail #143

Closed
@KubaC123

Description

@KubaC123

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

  1. add dependency (implementation "com.influxdb:influxdb-client-scala:1.8.0"), gradle in my case
  2. add influx2.properties file to classpath with connection settings
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions