zuora_api 1.7.25 → 1.7.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a1994319f46f6759b6749f7f6f40909c4a485029a3500ddd673f7937e2aae16
4
- data.tar.gz: a04062860cd33c0c3e7e3fe2fc5dc0c44a5fe3d61807d747935da571e9713d96
3
+ metadata.gz: 533f200e1fa984628ee3af06bca732c86561a873a0c1638402f2236d44174132
4
+ data.tar.gz: c7ce25a35cf21494fdfed0c502f238541b8368ecbb8f0e5b6a0835eee84724e2
5
5
  SHA512:
6
- metadata.gz: 25cd0027b6ae0ab062d709e4352e7cf9e36ecdb0dc91e4a759a33bdb753aa5ee9826d6bc640d35bd320a017f09900fdea995a491bed05fa0dfd959ca36cbbca3
7
- data.tar.gz: fcbd9b0b32c118e91084f4b279f9451dfd702d6f4410234d995801b3100a7dd23be067460794e4c87f729ee56043a6ca02943ee8c9606d6cb61cada83b68da4e
6
+ metadata.gz: 7ef261d78eb9f7e75b8c1ea9414815b3f334ffa473235ac5043a6ecdb3c14739e03ff80d02647362d2a0a4a78230a25da17f822c934a233ba23da632e3eee5b8
7
+ data.tar.gz: 849c7030f480861a00a17cb35dab095a5216da83ae63e90ef8a8e10429ed65c03debe5b55fc928cc4d8a9b1561e8236379aa905e7dae6826ac9b1ce0e0d5bfbb
@@ -474,7 +474,13 @@ module ZuoraAPI
474
474
  if !tries.zero? && z_session
475
475
  tries -= 1
476
476
  Rails.logger.debug("SOAP Call - Session Invalid")
477
- self.new_session(auth_type: :basic, zuora_track_id: zuora_track_id)
477
+
478
+ begin
479
+ self.new_session(auth_type: :basic, zuora_track_id: zuora_track_id)
480
+ rescue *ZUORA_API_ERRORS => ex
481
+ return output_xml, input_xml, ex.response
482
+ end
483
+
478
484
  retry
479
485
  else
480
486
  if errors.include?(ex.class)
@@ -568,7 +574,7 @@ module ZuoraAPI
568
574
  raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("The total number of concurrent requests has exceeded the limit allowed by the system. Please resubmit your request later.", response)
569
575
  end
570
576
 
571
- if body.fetch('message', '').downcase.include?('unexpected error')
577
+ if body.fetch('message', '').downcase.include?('unexpected error') && response.code != 500
572
578
  raise ZuoraAPI::Exceptions::ZuoraUnexpectedError.new(body['message'], response)
573
579
  end
574
580
 
@@ -898,7 +904,13 @@ module ZuoraAPI
898
904
  if !tries.zero? && z_session
899
905
  tries -= 1
900
906
  Rails.logger.debug("Rest Call - Session Invalid #{session_type}")
901
- self.new_session(auth_type: session_type)
907
+
908
+ begin
909
+ self.new_session(auth_type: session_type)
910
+ rescue *ZUORA_API_ERRORS => ex
911
+ return [output_json, ex.response]
912
+ end
913
+
902
914
  retry
903
915
  else
904
916
  if errors.include?(ex.class)
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.25"
2
+ VERSION = "1.7.26"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.25
4
+ version: 1.7.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2019-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler