fix memobin upload
1 changed file+3−2
python/ephys_compression_tests/run_benchmarks/_memobin.pymodified+3−2View file
@@ -28,6 +28,7 @@ def _retry_with_backoff(
2828 try:
2929 return func(*args, **kwargs)
3030 except Exception as e:
31+ print(f" Attempt {attempt + 1} failed with error: {str(e)}")
3132 last_exception = e
3233 if attempt < num_retries - 1:
3334 sleep_time = 2**attempt # 1, 2, 4, 8 seconds
@@ -57,7 +58,7 @@ def create_signed_upload_url(
5758 """
5859
5960 def _create_url() -> str:
60- prefix = "https://tempory.net/f/memobin/ephys_compression_tests/"
61+ prefix = "https://tempory.net/f/memobin/"
6162 if not url.startswith(prefix):
6263 raise ValueError("Invalid url. Does not have proper prefix")
6364
@@ -86,7 +87,7 @@ def create_signed_upload_url(
8687 download_url = result["downloadUrl"]
8788
8889 if download_url != url:
89- raise ValueError("Mismatch between download url and url")
90+ raise ValueError(f"Mismatch between download url and url: {download_url} != {url}")
9091
9192 return upload_url
9293