From e05e7b6b71794d42becc5a9c7b25376f3715cc1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Portela=20Afonso?= Date: Tue, 26 Mar 2024 17:08:24 +0000 Subject: [PATCH] fix(synthesizer): fetching the csv for a generated sample (#95) --- src/ydata/sdk/common/client/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ydata/sdk/common/client/client.py b/src/ydata/sdk/common/client/client.py index c844ab93..309887ee 100644 --- a/src/ydata/sdk/common/client/client.py +++ b/src/ydata/sdk/common/client/client.py @@ -160,8 +160,10 @@ def get_static_file( Returns: Response object """ + from urllib.parse import urlparse url_data = self.__build_url(endpoint, project=project) - url_data['url'] = f'{self._base_url}/static-content{endpoint}' + url_parse = urlparse(self._base_url) + url_data['url'] = f'{url_parse.scheme}://{url_parse.netloc}/static-content{endpoint}' response = self._http_client.get(**url_data) if response.status_code != Client.codes.OK and raise_for_status: