ArmorIQ SDK

Connection refused

Check proxy reachability and network access.

Connection refused

Cause: ArmorIQ Proxy not reachable.

Solution:

# Test connectivity
import requests

proxy_url = "https://proxy.armoriq.io"

try:
    response = requests.get(f"{proxy_url}/health", timeout=5)
    if response.status_code == 200:
        print("Proxy reachable")
    else:
        print(f"Proxy returned {response.status_code}")
except requests.exceptions.ConnectionError:
    print("Cannot connect to proxy - check URL and network")
except requests.exceptions.Timeout:
    print("Connection timed out - check firewall")

On this page