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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6a87a0e55967cc6690dac95fc6fb21356d9cbcf3bafa5f3e325f0858488fd35
|
4
|
+
data.tar.gz: f29a033b3dc9ef052b36b13cf8bdd31a7727b92753933c111b83bb4d3fed0be8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c4d77be9a510ea4e5815c264f0ee3b1a5cb825edc532c034fb9f51944d51ab1ba947e50a0ffe54b25c5f73a13a7433e25127ae3c22a5ca45dcd4cd7d9f4d06
|
7
|
+
data.tar.gz: 31d8c012d342518a34ff72964e1139aba0185ffec881f8c672ee09b7bccb3add816d3a2d0890e6447bba4f433b1045f198de29e5df44c8fedbbbf65ca06e527d
|
data/lib/tanker/core/http.rb
CHANGED
@@ -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}"
|
data/lib/tanker/core/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
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.
|
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-
|
11
|
+
date: 2022-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|