influxdb-client 3.1.0.pre.7617 → 3.1.0.pre.7871

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09746d170a6a3faf4a86a90216e1d00bd8a2832ab22e071983ee260d331c7c37'
4
- data.tar.gz: fa8957f7c41265bfcbff403aa865a39b864fdd985ed5fda27d871d0f8680de47
3
+ metadata.gz: ca2f50fc2a25507c9181f71b3492e035e82b1f9a5a6997171451c7a97a49b4b8
4
+ data.tar.gz: 1c145f179ef4771b2d40a78e925965d94c9d3f82d18febfad3950d5973a676a8
5
5
  SHA512:
6
- metadata.gz: caad1060a9281eacf8b7d765efa8733296c18b14c9594c8416bd172492be8f671e87d9d35cc956adeb9efb16c0294f36813f6cf96400d249b9c47ac921abbfe9
7
- data.tar.gz: 7d55ef90dae1303dc8dcba21a31bbe5212e6df7cbcc589eaa8c2618f98004d5e493a5552568adb6fa16617d6c69fbba1247fc5cf26601cde94ca6ccc63811f8b
6
+ metadata.gz: ed66fbedf6ff9f74211b8eed6c1ee41efaa19a55c187a5cf8b0ad01582cb5057366f19f9506d79709d21897c591c29e17dde68b3ca2ee0af41cc708975277d1d
7
+ data.tar.gz: 4fc50ce1446f9ff83f51baeb40ae61444b45e922cbbbc81a20c626dcdd4d537c4090e33ab1979c7f309077b3eac1d727972e807df29c77a85db0941540c1adc4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 3.1.0 [unreleased]
2
2
 
3
+ ### Bug Fixes
4
+ 1. [#134](https://github.com/influxdata/influxdb-client-ruby/pull/134): Support influxdb v1.8 HTTP error response message. Prior to this change, in case of an HTTP error response (influxDB v1.8) the InfluxError had empty message.
5
+
3
6
  ## 3.0.0 [2023-12-05]
4
7
 
5
8
  ### Bug Fixes
@@ -32,7 +32,7 @@ module InfluxDB2
32
32
 
33
33
  def self.from_response(response)
34
34
  json = JSON.parse(response.body)
35
- obj = new(message: json['message'] || '', code: response.code, reference: json['code'] || '',
35
+ obj = new(message: json['message'] || json['error'] || '', code: response.code, reference: json['code'] || '',
36
36
  retry_after: response['Retry-After'] || '')
37
37
  obj
38
38
  rescue JSON::ParserError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.pre.7617
4
+ version: 3.1.0.pre.7871
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-05 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler