Skip to content

Commit

Permalink
docs: Improve RPC error message and docs reference
Browse files Browse the repository at this point in the history
Signed-off-by: OjusWiZard <[email protected]>
  • Loading branch information
OjusWiZard committed Oct 22, 2024
1 parent ac8603d commit f050e6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autonomy/chain/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions autonomy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:bafybeigax5gzud6ytq3wypajqwzlfwhpuegcma7q5b7m534kgu7vfmfaaq"
OLAS_DOCS_URL = "https://docs.autonolas.network"

0 comments on commit f050e6b

Please sign in to comment.