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
One of my project is using influxdb-java to connect to an influxdb database without username and password.
After we upgraded okhttp to version 4.0.1, InfluxDB client starts failing with the following exception:
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method okhttp3.Credentials.basic, parameter username
at okhttp3.Credentials.basic(Credentials.kt)
at okhttp3.Credentials.basic$default(Credentials.kt:28)
at okhttp3.Credentials.basic(Credentials.kt)
at org.influxdb.impl.BasicAuthInterceptor.<init>(BasicAuthInterceptor.java:15)
at org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:151)
at org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:120)
at org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:184)
at org.influxdb.InfluxDBFactory.connect(InfluxDBFactory.java:63)
It looks like from version 4, the method Credentials.basic() in com.squareup.okhttp3:okhttp does not accept null values for username and password anymore, but currently there is no way to not calling that method when initializing the InfluxDBImpl instance.
The text was updated successfully, but these errors were encountered:
vinh0604
changed the title
InfluxDBFactory.connect throws exception when using without username/password on com.squareup.okhttp3:okhttp 4.x.x
InfluxDBFactory.connect() throws exception when using without username/password on okhttp 4.x.x
Dec 21, 2019
One of my project is using
influxdb-java
to connect to an influxdb database without username and password.After we upgraded
okhttp
to version 4.0.1, InfluxDB client starts failing with the following exception:It looks like from version 4, the method
Credentials.basic()
incom.squareup.okhttp3:okhttp
does not accept null values for username and password anymore, but currently there is no way to not calling that method when initializing the InfluxDBImpl instance.The text was updated successfully, but these errors were encountered: