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
hi,
The client states compatibility with the InfluxDB 1.8+. Unfortunately, I was not able to write data. I've build an example repo to show the problem:
# run influx first
docker-compose up -d
# run the insert
go run main.go
I use syntax to build a point described in the compatibility section:
which produces the line: stat,unit=mem avg_ns=111111111i,max=42u,num=23i 1593456269331238808
It contains i, u. As I understand the u was added in InfluxDB 2.0 line protocol.
I expect if a syntax is described in compatibility section it should work for the InfluxDB 1.8+.
In the example I can successfully write a record with line that does not contains i or u, but if I change the line to be:
note the i for max, it also fails to write. Which is also unexpected since as I understand from the doc this should be allowed in InfluxDB 1.8.
And lastly, the error, unfortunately, is not very helpful. It does not contain any info except the status 400. Is there a parameter for InfluxDB to return verbose errors?
The text was updated successfully, but these errors were encountered:
@max-neverov, thanks for using this client.
This client is primarily intended for using InfluxDB 2. InfluxDB 1.8 added V2 compatibility API to smoothly migrate from InfluxDB V1 to V2. But it has a few limitations.
If your intention is to use this client only with InfluxDB 1, I would recommend using the official InfluxDB 1 client
The missing support for unsigned integers in the V2 compatibility API in InfluxDB 1.8 is already reported in the InfluxDB issue #17781. As you mentioned, the easy workaround is casting unsigned integer to signed integer, which works ok.
If you've successfully written the max field with a float type, the schema in the database is fixed for this field and you cannot write the same field with a different type, which is probably the error returned from the server.
Unfortunately, also V2 compatibility API also doesn't support the InfluxDB 2 error format. Luckily, there is already merged PR #138 in the master, which adds the possibility to read also V1 errors.
hi,
The client states compatibility with the InfluxDB 1.8+. Unfortunately, I was not able to write data. I've build an example repo to show the problem:
I use syntax to build a point described in the compatibility section:
which produces the line:
stat,unit=mem avg_ns=111111111i,max=42u,num=23i 1593456269331238808
It contains i, u. As I understand the
u
was added in InfluxDB 2.0 line protocol.I expect if a syntax is described in compatibility section it should work for the InfluxDB 1.8+.
In the example I can successfully write a record with line that does not contains
i
oru
, but if I change the line to be:note the
i
for max, it also fails to write. Which is also unexpected since as I understand from the doc this should be allowed in InfluxDB 1.8.And lastly, the error, unfortunately, is not very helpful. It does not contain any info except the status 400. Is there a parameter for InfluxDB to return verbose errors?
The text was updated successfully, but these errors were encountered: