Skip to content

Client build with session authscheme fails with "token required" #178

@shivchelwa

Description

@shivchelwa

Steps to reproduce:

  1. Build InfluxDBClientOptions using InfluxDBClientOptions.builder().connectionString(connStr).org(org).bucket(bucket).authenticate(user, pwd.toCharArray()).build()
  2. Create InfluxDBClient using InfluxDBClientFactory.create(clientOptions)
  3. Write a point using influxDBClient.getWriteApi().writePoints(points)

Expected behavior:
Session authentication scheme should be used and point is written to InfluxDB

Actual behavior:
Get a exception "com.influxdb.exceptions.UnauthorizedException: unauthorized access". On InfluxDB server an error is seen ts=2020-11-20T03:14:43.571574Z lvl=info msg=Unauthorized log_id=0Q_QdXh0000 error="token required"

Specifications:

  • Client Version: 1.13.0
  • InfluxDB Version: 2.0.1
  • JDK Version: jdk-11.0.4
  • Platform: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions