Skip to content

address is resolved to unix: #404

Description

@bastel-123

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions