-
Notifications
You must be signed in to change notification settings - Fork 23
query fails silently on parse errors #64
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
Comments
This is because the It might be better to default to the |
I've fixed the issue in the feature/error-handling branch. Could you confirm if case_issue64 is the issue you described and check if it's fixed in this branch? |
v1.8.0 This release reworked the QueryResuls type class. There are some breaking changes: * parseResults has been deprecated. QueryResults has now parseMeasurement method. * Decoder has been monomorphized so that it can be used with lens. The original Decoder type has been renamed to SomeDecoder. * QueryParams has now decoder field. * parseResults and parseResultsWith had been using lenientDecoder and it caused some unintuitive behavior (#64, #66). Now they use strictDecoder instead. * parseErrorObject now doesn't fail. It returns the error message of a response. * parseQueryField which has been deprecated is now deleted. * QueryResults instance for ShowSeries was broken. This is fixed. * The constructor of Decoder, parseResultsWith, and parseResultsWithDecoder have been hidden from the top-level module. They're still available from Database.InfluxDB.JSON. See #68 for how to migrate your code from v1.7.x to v1.8.x.
I came across it when using
(Tagged "time" Int)
field. The query was returning no results even though printed and ran by hand was ok. It worked when I changed it toTagged "time" UTCTime
. But it broke agains when I set the precision toSecond
in query parameters. Now I know that was due to the precision being set torfc3339
which returns human readable timestamps. Anyway, the bigger issue here is that parse errors are silent failures.The text was updated successfully, but these errors were encountered: