diff --git a/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py b/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py index d3ce1ada9ce..c3627187c6e 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/mstr/client.py @@ -30,6 +30,7 @@ from metadata.ingestion.source.dashboard.mstr.models import ( MstrSearchResult, MstrSearchResultList, ) +from metadata.utils.helpers import clean_uri from metadata.utils.logger import ingestion_logger logger = ingestion_logger() @@ -44,8 +45,8 @@ class MSTRClient: def _get_base_url(self, path=None): if not path: - return f"{self.config.hostPort}/{API_VERSION}/" - return f"{self.config.hostPort}/{API_VERSION}/{path}" + return f"{clean_uri(self.config.hostPort)}/{API_VERSION}/" + return f"{clean_uri(self.config.hostPort)}/{API_VERSION}/{path}" def _get_mstr_session(self) -> MSTRRESTSession: try: