power-bi 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/power-bi/tenant.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc6c1cfdb170ac629fa4fc3b6a25d0f0dee54b5ad4d155bc8517bf43f578b7e
|
4
|
+
data.tar.gz: ac8ba70e7d19e337255fdf9186106f69a1134f8ee8622132ff3f3f9fa185f667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b203f1ba87245fc6929b590c4bc43a9684272fa9284b0f3995718f282f602b8ac36d285f2175c97bac4cbd2934a2ef0a84ac6398287e82a9fccf45878ab6b89
|
7
|
+
data.tar.gz: 713959ed56ae914aa1b5de74372b9a78d307aef672ae4b7a2383752218ef07bb739217f39454329281875a0dcbe96307444516a6c0e5b391db4e421bdae453a1
|
data/lib/power-bi/tenant.rb
CHANGED
@@ -13,11 +13,12 @@ module PowerBI
|
|
13
13
|
@retry_options = {
|
14
14
|
max: retries,
|
15
15
|
exceptions: [Errno::ETIMEDOUT, Timeout::Error, Faraday::TimeoutError, Faraday::RetriableResponse],
|
16
|
+
methods: [:get, :post, :patch, :delete],
|
16
17
|
retry_statuses: [500], # internal server error
|
17
18
|
interval: 0.2,
|
18
19
|
interval_randomness: 0,
|
19
20
|
backoff_factor: 4,
|
20
|
-
retry_block: -> (env, options, retries, exc) { puts "retrying...!!" },
|
21
|
+
retry_block: -> (env, options, retries, exc) { puts "retrying...!! (@ #{Time.now.to_s}), exception: #{exc.to_s} ---- #{exc.message}" },
|
21
22
|
}
|
22
23
|
end
|
23
24
|
|
@@ -121,6 +122,7 @@ module PowerBI
|
|
121
122
|
req.headers['Content-Type'] = 'multipart/form-data'
|
122
123
|
req.headers['authorization'] = "Bearer #{token}"
|
123
124
|
req.body = {value: Faraday::UploadIO.new(file, 'application/octet-stream')}
|
125
|
+
req.options.timeout = 120 # default is 60 seconds Net::ReadTimeout
|
124
126
|
end
|
125
127
|
if response.status != 202
|
126
128
|
raise APIError.new("Error calling Power BI API (status #{response.status}): #{response.body}")
|