Skip to content
Snippets Groups Projects
Commit 88e28582 authored by Jan Fousek's avatar Jan Fousek Committed by Administrator
Browse files

reflected change in data proxy API

parent 30ba861a
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,11 @@ class DataProxyConnectivityDataset: ...@@ -37,7 +37,11 @@ class DataProxyConnectivityDataset:
return token return token
def open_file(self, path): def open_file(self, path):
temporary_url = requests.get(f"{self.DATA_PROXY_ENDPOINT}/datasets/{self.BUCKET_NAME}/{path}", headers=self.AUTHORIZATION_HEADERS) temporary_url = requests.get(
f"{self.DATA_PROXY_ENDPOINT}/datasets/{self.BUCKET_NAME}/{path}",
headers=self.AUTHORIZATION_HEADERS,
params={'redirect':False}
)
if not temporary_url.ok: if not temporary_url.ok:
raise Exception(f'Failed request: {temporary_url.reason}') raise Exception(f'Failed request: {temporary_url.reason}')
dl_url = temporary_url.json()["url"] dl_url = temporary_url.json()["url"]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment