Allow retry on Signet::AuthorizationError (#611)
This commit is contained in:
1 parent
bc4644ca5e
commit
2a4efbf3b9
2 files changed
+40
-2
No files matched your search
@@ -99,7 +99,7 @@ module Google
|
||||
# NotFound, etc
|
||||
auth_tries = (try == 1 && authorization_refreshable? ? 2 : 1)
|
||||
Retriable.retriable tries: auth_tries,
|
||||
on: [Google::Apis::AuthorizationError],
|
||||
on: [Google::Apis::AuthorizationError, Signet::AuthorizationError],
|
||||
on_retry: proc { |*| refresh_authorization } do
|
||||
execute_once(client).tap do |result|
|
||||
if block_given?
|
||||
|
||||
Reference in new issue
Block a user