Skip to content

Java client library: finfluxdb client | influx HTTP status code: 401; Message: Unauthorized access.  #522

Open
@annikaImBuero

Description

@annikaImBuero

Java client library: influxdb client
https://github.com/influxdata/influxdb-client-java

Builder builder = InfluxDBClientOptions.builder();
builder.url(serverUrl);
if (!token.isEmpty()) {
builder.authenticateToken(token.toCharArray()); // 1.
} else {
builder.authenticate(username, password.toCharArray()); // 2.
}
builder.bucket(bucketName);
builder.org(organization);
InfluxDBClientOptions options = builder.build();

  1. the connection via builder.authenticateToken(token.toCharArray()); works.
  2. If the connection is made via builder.authenticate(username, password.toCharArray()); --> error message
    influx HTTP status code: 401; message: Unauthorized access

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions