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

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: 798243a3e397aacc6176789ca3a9121aac954864e9bfb75c67ee76267e7c6916
4
+ data.tar.gz: 9b2c77bb07d9423cfa252a1208c3922be98255d2f70d2171eeddc810b48fcfc2
5
5
  SHA512:
6
- metadata.gz: caad1060a9281eacf8b7d765efa8733296c18b14c9594c8416bd172492be8f671e87d9d35cc956adeb9efb16c0294f36813f6cf96400d249b9c47ac921abbfe9
7
- data.tar.gz: 7d55ef90dae1303dc8dcba21a31bbe5212e6df7cbcc589eaa8c2618f98004d5e493a5552568adb6fa16617d6c69fbba1247fc5cf26601cde94ca6ccc63811f8b
6
+ metadata.gz: bb38d9727ebf6f56a8aa9165544a8c1fa5d0a31f8cabf9a2f40e856703f2b30558b03ac06b81d55b20aab7407c5d48c16532c8b0cdce930c84960dbf9a32adf8
7
+ data.tar.gz: a4e3c81e3c0241cb42742eae88aa51e0cc74cc9bb8d5d681614703fbb38cc8f8200d5db08c2def6c4ec38a68a9ecffe5708d51bd76e4e3d78734ba4ef5c12be6
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.7796
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-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler