Skip to content
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

rc28 panic -- interface conversion: interface is string, not float64 #2456

Closed
ecables opened this issue Apr 29, 2015 · 3 comments
Closed

rc28 panic -- interface conversion: interface is string, not float64 #2456

ecables opened this issue Apr 29, 2015 · 3 comments

Comments

@ecables
Copy link

ecables commented Apr 29, 2015

Perhaps I'm doing something silly, but a simple sum() or mean() query against a measurement's values is causing a panic in rc28. I have the full panic output, if that's of interest.

The following query works fine:
SELECT value FROM output_bps limit 5;
time value
2015-04-28T15:56:02Z 837367639
2015-04-28T15:56:02Z 269102821
2015-04-28T15:56:02Z 393390752
2015-04-28T15:56:02Z 169437859
2015-04-28T15:56:02Z 1067908009

If I issue a sum(value) for the same query above, influx panics, and crashes.

Example:
SELECT sum(value) FROM output_bps limit 5;

Error in influxd.log:
panic: interface conversion: interface is string, not float64
<followed by 1,000 lines of debug output>

@neonstalwart
Copy link
Contributor

i'm going to bet that you inserted "value": "837367639" rather than "value": 837367639. can you possibly show the JSON response of SELECT value FROM output_bps limit 5?

@otoolep
Copy link
Contributor

otoolep commented Apr 30, 2015

Dupe of 2299.

@otoolep otoolep closed this as completed Apr 30, 2015
@otoolep
Copy link
Contributor

otoolep commented Apr 30, 2015

#2299

Please be sure not to quote your numeric values when sending them into InfluxDB as they will then be interpreted as string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants