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
rfc3339 is the most precise time precision. You can override it by setting Timestamp::Hours(11).into_query("weather"), where 11 is the hours since the epoch. Timestamp also has other types for smaller precision such as second or nanosecond.
Which InfluxDB version are you using? I am not aware of a change that removes setting the rfc3339 precision.
@Empty2k12 , appreciated your quick response. I don't have the challenge with Timestamp::Hours(11).into_query("weather"), or with any other such as Seconds. The only challenge is the Now(), which leads to the error as above.
The version influxdb is the docker images influxdb:latest (1.8.0).
Thank you so much again for your help here. Appreciated.
Hello @Empty2k12
Great crate, thank you. Recently I used this crate.
let write_query = Timestamp::Now.into_query("weather").add_field("humidity", 82);
let write_result = influxdb.query(&write_query).await;
println!("write_result : {:?}", write_result.expect("write into influxdb failed"));
The error message as follow:
DatabaseError { error: "influxdb error: \"{\"error\":\"invalid precision \\\"rfc3339\\\" (use n, u, ms, s, m or h)\"}\n\"" }
Any suggestion? or guidance?
Thank you
The text was updated successfully, but these errors were encountered: