lib/avst-wizard.rb in avst-wizard-0.0.26 vs lib/avst-wizard.rb in avst-wizard-0.0.27
- old
+ new
@@ -157,9 +157,10 @@
while (response == nil and counter < 20)
begin
response = Net::HTTP.start(url.host, url.port, use_ssl: use_ssl, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http| http.request(req) }
rescue Exception => e
# in case we have to wait for response so it wont timeout
+ sleep(5)
puts "Exception thrown while trying to parse value: #{e.inspect} \n counter #{counter}/20".yellow
counter+=1
end
end
if response.code.to_i != 200