tanker-core 2.32.0.beta.2 → 2.32.0.beta.4

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: 58ecc5854b8a1df78015933a12b40c24701f7d9d46425939178097ec8861d0e1
4
- data.tar.gz: a84443d60fadfe6dd7ab84b47850accd40ffbf0e237b6b72606753d8011f1f77
3
+ metadata.gz: b6a87a0e55967cc6690dac95fc6fb21356d9cbcf3bafa5f3e325f0858488fd35
4
+ data.tar.gz: f29a033b3dc9ef052b36b13cf8bdd31a7727b92753933c111b83bb4d3fed0be8
5
5
  SHA512:
6
- metadata.gz: cf0f2020ec774886f32b8e3558de12fbeb1b1c712f815c81826f9598d8a88733002054851556f97cb852a62d7b8f81239bddf1e2c572cca976f60a521fbd3663
7
- data.tar.gz: 5e7b2549806a0718091223d2ab088e477a926dc57ff712065782ea025b474a258dab52a1f713ecd8b8a29e1aef6bcbe957fc72e462405d126cd430a5cc0d3991
6
+ metadata.gz: 06c4d77be9a510ea4e5815c264f0ee3b1a5cb825edc532c034fb9f51944d51ab1ba947e50a0ffe54b25c5f73a13a7433e25127ae3c22a5ca45dcd4cd7d9f4d06
7
+ data.tar.gz: 31d8c012d342518a34ff72964e1139aba0185ffec881f8c672ee09b7bccb3add816d3a2d0890e6447bba4f433b1045f198de29e5df44c8fedbbbf65ca06e527d
@@ -138,6 +138,11 @@ module Tanker
138
138
  body: fresponse.body
139
139
  CTanker.tanker_http_handle_response(request.crequest, cresponse)
140
140
  end
141
+ rescue Faraday::ConnectionFailed => e
142
+ # This can happen if Faraday is using a proxy, and it rejects the request
143
+ # If we get a 500 from the proxy, we want to differentiate this from a real server error
144
+ cresponse = CTanker::CHttpResponse.new_error "#{e.class}: #{e.message}"
145
+ CTanker.tanker_http_handle_response(request.crequest, cresponse)
141
146
  rescue Exception => e # rubocop:disable Lint/RescueException I do want to rescue all exceptions
142
147
  # NOTE: when debugging, you might want to uncomment this to print a full backtrace
143
148
  # puts "HTTP request error:\n#{e.full_message}"
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Tanker
4
4
  class Core
5
- VERSION = '2.32.0.beta.2'
5
+ VERSION = '2.32.0.beta.4'
6
6
 
7
7
  def self.native_version
8
8
  CTanker.tanker_version_string
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanker-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.32.0.beta.2
4
+ version: 2.32.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanker team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-28 00:00:00.000000000 Z
11
+ date: 2022-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi