Commit d5de6c9
authored
fix: support influxdb v1.8 HTTP error response message (#134)
An influxdb v1.8 HTTP error response message was not correctly transfered to the ruby InfluxError message.
In case of an InfuxError, the reason (error message) was not traceable.
How the fix works:
- InfluxDB v1.8 and v2.x provide Error details in the json-rsp body
- InfluxDB v2.x uses the `message` key for this
- InfluxDB v1.8 uses the `error` key for this
-> previously only `message` was supported
-> now, in case `message` is empty, `error` is checked
Refs: #1331 parent 9eb5d8b commit d5de6c9
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments