Skip to content

Commit 838135a

Browse files
authored
FIX downloading volume from connector (#796)
Since the pydantic upgrade the / is automatically added thus it resulted in a double // e.g http://localhost:4021//download/data/5f31b0706f59404fad3d0bff97ef89ddf24da4761608ea0646329362c662ba5 which made the vm-connector return 404 It was fixed for other download function from the vm connector but this one was missed
1 parent b87ae8a commit 838135a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/vm/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ async def get_existing_file(ref: str) -> Path:
363363
return Path(settings.FAKE_DATA_VOLUME)
364364

365365
cache_path = Path(settings.DATA_CACHE) / ref
366-
url = f"{settings.CONNECTOR_URL}/download/data/{ref}"
366+
url = f"{settings.CONNECTOR_URL}download/data/{ref}"
367367
await download_file(url, cache_path)
368368
await chown_to_jailman(cache_path)
369369
return cache_path

0 commit comments

Comments
 (0)