Specifications
- Client Version: latest
- InfluxDB Version: latest
- Platform: Java 25
I get the following error message while InfluxDBClient.getInstance (config) "java.lang.RuntimeException: java.lang.IllegalArgumentException: Address types of NameResolver 'unix' for 'unix:///192.168.178.100:8181' not supported by transport". At the clientConfig I defined host ('http:///192.168.178.100:8181').
Code sample to reproduce problem
````java`
### Expected behavior
String influxHost = resolveInfluxProperty ("INFLUX_HOST", "http://192.168.178.100:8181");
String influxToken = resolveInfluxProperty ("INFLUX_TOKEN", "...token... ");
String influxDB = resolveInfluxProperty ("INFLUX_DATABASE", "test");
Duration influxWriteTimeout = Duration.ofMillis(5000L);
Duration influxQueryTimeout = Duration.ofMillis(5000L);
ClientConfig influxConfig = new ClientConfig.Builder()
.host (influxHost)
.token (influxToken.toCharArray())
.database (influxDB)
.writeTimeout (influxWriteTimeout)
.queryTimeout (influxQueryTimeout)
.build();
try {
influxClient = InfluxDBClient.getInstance (influxConfig);
} catch (Exception ex) {
throw new RuntimeException (ex);
}
### Actual behavior
exception ("java.lang.IllegalArgumentException: Address types of NameResolver 'unix' for 'unix:///pm-docker-2:8181' not supported by transport")
### Additional info
_No response_
Specifications
I get the following error message while InfluxDBClient.getInstance (config) "java.lang.RuntimeException: java.lang.IllegalArgumentException: Address types of NameResolver 'unix' for 'unix:///192.168.178.100:8181' not supported by transport". At the clientConfig I defined host ('http:///192.168.178.100:8181').
Code sample to reproduce problem
````java`