You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
expected that successful write will have happen
Actual behavior:
Getting unauthorized access error
com.influxdb.exceptions.UnauthorizedException: unauthorized access
Note:-
1> Using same credentials which I used in the code, I am able to login to InfluxDB web UI console.
2> If I create a token from web UI console after login using credentials used in the code and use
this new token then in InfluxDBClientOptions, then write operation gets successful Specifications:
Client Version:
InfluxDB Version: 2.5
JDK Version: 11
Platform: mac
The text was updated successfully, but these errors were encountered:
The WriteApi uses background thread to batch writes into InfluxDB, so you have to close writeApi before closing the client. The following code will works:
Steps to reproduce:
execute below code by changing host, user name and password
`
`
Expected behavior:
expected that successful write will have happen
Actual behavior:
Getting unauthorized access error
com.influxdb.exceptions.UnauthorizedException: unauthorized access
Note:-
1> Using same credentials which I used in the code, I am able to login to InfluxDB web UI console.
2> If I create a token from web UI console after login using credentials used in the code and use
this new token then in InfluxDBClientOptions, then write operation gets successful
Specifications:
The text was updated successfully, but these errors were encountered: