diff --git a/autonomy/chain/utils.py b/autonomy/chain/utils.py index 0e13b18632..bd383ede5b 100644 --- a/autonomy/chain/utils.py +++ b/autonomy/chain/utils.py @@ -30,6 +30,7 @@ from autonomy.chain.constants import SERVICE_MANAGER_TOKEN_COMPATIBLE_CHAINS from autonomy.chain.exceptions import DependencyError, FailedToRetrieveComponentMetadata from autonomy.chain.metadata import IPFS_URI_PREFIX +from autonomy.constants import OLAS_DOCS_URL def get_ipfs_hash_from_uri(uri: str) -> str: @@ -61,7 +62,11 @@ def resolve_component_id( token_id=token_id, ) except RequestConnectionError as e: - raise FailedToRetrieveComponentMetadata("Error connecting to the RPC") from e + raise FailedToRetrieveComponentMetadata( + "Error connecting to the RPC. Please make sure that " + "you have set the chain RPC environment variable correctly. " + f"You can read more about the configurations on {OLAS_DOCS_URL}/open-autonomy/advanced_reference/commands/autonomy_service/#options." + ) from e try: return r_get(url=metadata_uri).json() diff --git a/autonomy/constants.py b/autonomy/constants.py index cb47008a07..8ed7761610 100644 --- a/autonomy/constants.py +++ b/autonomy/constants.py @@ -66,3 +66,4 @@ DEFAULT_DOCKER_IMAGE_AUTHOR = "valory" OAR_IMAGE = "{image_author}/oar-{agent}:{version}" ABSTRACT_ROUND_ABCI_SKILL_WITH_HASH = "valory/abstract_round_abci:0.1.0:bafybeihinmp6fj7vsooudtfxr7e64scleawt5dqlfqwrhovuw57gbfmc3u" +OLAS_DOCS_URL = "https://docs.autonolas.network"