in lib/res_cli/cli.rb [284:302]
def self.testAPI()
begin
puts "Testing API..."
response = HTTPX.get("https://server.resilientdb.com/test")
if response.status == 200
puts response.body
else
puts "Error: #{response.status}"
end
rescue HTTPX::Error => e
puts "HTTPX Error: #{e.message}"
rescue StandardError => e
puts "Error: #{e.message}"
end
end