From 3166d19c1d9173ed67dc56a3f59c043348edd960 Mon Sep 17 00:00:00 2001 From: Thomas Diesler Date: Tue, 26 Apr 2022 14:15:20 +0200 Subject: [PATCH] [#1745] Fetch from --genesis-url likely to fail in composed container setup Signed-off-by: Thomas Diesler --- aries_cloudagent/config/ledger.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aries_cloudagent/config/ledger.py b/aries_cloudagent/config/ledger.py index d98b9ad0e5..8ff0f66640 100644 --- a/aries_cloudagent/config/ledger.py +++ b/aries_cloudagent/config/ledger.py @@ -31,7 +31,9 @@ async def fetch_genesis_transactions(genesis_url: str) -> str: headers["Content-Type"] = "application/json" LOGGER.info("Fetching genesis transactions from: %s", genesis_url) try: - return await fetch(genesis_url, headers=headers) + # Fetch from --genesis-url likely to fail in composed container setup + # https://github.com/hyperledger/aries-cloudagent-python/issues/1745 + return await fetch(genesis_url, headers=headers, max_attempts=20) except FetchError as e: raise ConfigError("Error retrieving ledger genesis transactions") from e