-
Notifications
You must be signed in to change notification settings - Fork 117
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
fix: errors from InfluxDB 1.8 being empty #138
Conversation
Codecov Report
@@ Coverage Diff @@
## master #138 +/- ##
==========================================
- Coverage 78.88% 78.66% -0.22%
==========================================
Files 26 26
Lines 1776 1772 -4
==========================================
- Hits 1401 1394 -7
- Misses 247 250 +3
Partials 128 128
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. LGTM.
Please, add a Changelog entry and a test (e.g. sth like this)
Squashed from 4 commits: - Added an HTTP error fallback to X-Influxdb-Error - Added a final default fallback for the HTTP Error - Added tests for Influx 1.8 and fallback errors - Added this PR to changelogs
I genuinely have no idea why the tests are failing somewhere else after only adding 2 more tests. |
Thanks for the update. Don't worry about the tests. There is a change between beta 12 and beta 13 that made some tests failing. |
This PR fixes errors from InfluxDB 1.8 being empty. It does this by falling back to reading the
X-Influxdb-Error
, and if that doesn't work, thenhttp.Error
would return the unexpected status code inside the error message.Before PR:
After PR: