-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'invalid number' error when loading Rails page using influx-20 branch #173
Comments
Thanks @macmartine. I will have a look at this tomorrow, very odd but seems related to the new client. |
@ChrisBr I narrowed it down to the 'started' variable in the following payload... Here's the end of the payload that's causing the error:
If the 'started' variable is removed, all is well. UPDATE:
But still get: 'undefined method `convert_timestamp' for InfluxDB:Module' .... can't find where that method is/was. Also had to remove the InfluxDB:: namespace from:
|
@macmartine can you check what type
|
Also which Rails version are you using? |
Any update @macmartine ? |
@ChrisBr Sorry, I was just experimenting with this and not using it anymore at the moment. Thanks! |
https://docs.influxdata.com/influxdb/v2.0/reference/syntax/line-protocol/#timestamp |
@hennevogel as mentioned, this should be handled by the new client as long as this is a time object. My suspicion is that this is a String. But as it's coming from Rails it should be a time object. |
This should be handled by the client. The client is responsible for converting all the timestamps to integers. Client is not checking the presence of timestamps in tags and fields and just converting it to a string instead of an int. I've opened a PR in client to address this issue influxdata/influxdb-client-ruby#131 |
Fixed upstream, thanks @rubhanazeem 💐 |
I'm using the influxdb-20 branch. It connects fine and send a little data, but then throws this guy:
InfluxDB2::InfluxError: unable to parse 'rails,format=html,hook=process_action,http_method=GET,location=DashboardController#show,method=DashboardController#show,server=pop-os,status=200 controller=2549i,db=1838i,request_id="5ab55ec7-000a-4d78-a4c5-22fb0035c1a8",started=2021-07-01 22:54:29 UTC,view=47i 1625180071846983424': invalid number
Anything obvious that stands out here, or is this a bug in the gem?
The text was updated successfully, but these errors were encountered: