Open retronym opened 7 years ago
I'm having the same issue. I use a public influxdb for my test data and the http server forwards the requests from a certain path. This library just skips the path and tries to go directly to /write
which obviously fails.
@retronym Your workaround works for now...
worked for me too, but this is not very for newcomers :)
Just ran into this using the https://github.com/jenkinsci/influxdb-plugin, we switched our config from a staging http://10.x.x.x:8086
to http://internal-alb.fqdn/influx
and now we get a 404
exception when trying to write.
(Tested with influxdb-java version 2.5)
We're using a HTTPS reverse proxy in front our influxdb instance.
The external URLs is
https://scala-ci.typesafe.com/influx/write
.The URL actually generated by influxdb-java is
https://scala-ci.typesafe.com/write
.I believe that changing
@POST("/write")
to@POST("write")
, etc, inInfluxDBService.java
would fix this, but haven't verified.A workaround is to add an interceptor to fixup the URL.