Skip to content

Commit db6b769

Browse files
authored
Merge pull request openwallet-foundation#1746 from tdiesler/ghi1745
[openwallet-foundation#1745] Fetch from --genesis-url likely to fail in composed container…
2 parents ff68284 + 2ea9393 commit db6b769

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

aries_cloudagent/config/ledger.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ async def fetch_genesis_transactions(genesis_url: str) -> str:
3131
headers["Content-Type"] = "application/json"
3232
LOGGER.info("Fetching genesis transactions from: %s", genesis_url)
3333
try:
34-
return await fetch(genesis_url, headers=headers)
34+
# Fetch from --genesis-url likely to fail in composed container setup
35+
# https://github.com/hyperledger/aries-cloudagent-python/issues/1745
36+
return await fetch(genesis_url, headers=headers, max_attempts=20)
3537
except FetchError as e:
3638
raise ConfigError("Error retrieving ledger genesis transactions") from e
3739

0 commit comments

Comments
 (0)