Skip to content

Commit

Permalink
[openwallet-foundation#1745] Fetch from --genesis-url likely to fail …
Browse files Browse the repository at this point in the history
…in composed container setup

Signed-off-by: Thomas Diesler <[email protected]>
  • Loading branch information
tdiesler committed Apr 26, 2022
1 parent 0c695cf commit 3166d19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aries_cloudagent/config/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3166d19

Please sign in to comment.