Skip to main content

SDK Connection Error

APIConnectionError · Request failed after retries · timeouts · DNS / connection refused. The SDK can't reach the API.

  • Confirm the machine has internet and isn't behind a blocking proxy / VPN / firewall.

  • Check the base URL:

    import os
    print(os.getenv("CUSTODIAN_SDK_BASE_URL")) # None = using the default
    print(bool(os.getenv("CUSTODIAN_SDK_API_KEY"))) # don't print the key itself
    console.log(process.env.CUSTODIAN_SDK_BASE_URL, Boolean(process.env.CUSTODIAN_SDK_API_KEY));
  • Restart the process after changing env vars.

  • Try from another network. If it fails everywhere, contact support.

See also​

Authentication (Python) · (TypeScript) · SDK Exceptions