Skip to content

nightly tests: mmar downloading #2362

@wyli

Description

@wyli

Describe the bug
mmar downloading may have HTTP 500 errors:
https://github.com/Project-MONAI/MONAI/runs/2809176821?check_suite_focus=true

======================================================================
ERROR: test_download_0_clara_pt_prostate_mri_segmentation_1 (tests.test_mmar_download.TestMMMARDownload)
----------------------------------------------------------------------
  File "/opt/conda/lib/python3.8/site-packages/parameterized/parameterized.py", line 533, in standalone_func
    return func(*(a + p.args), **p.kwargs)
  File "/tmp/tmp.eIY4VrioyS/tests/test_mmar_download.py", line 91, in test_download
    download_mmar(idx, mmar_dir=tmp_dir, progress=False)
  File "/opt/conda/lib/python3.8/site-packages/monai/apps/mmars/mmars.py", line 79, in download_mmar
    download_and_extract(
  File "/opt/conda/lib/python3.8/site-packages/monai/apps/utils.py", line 272, in download_and_extract
    download_url(url=url, filepath=filename, hash_val=hash_val, hash_type=hash_type, progress=progress)
  File "/opt/conda/lib/python3.8/site-packages/monai/apps/utils.py", line 166, in download_url
    _download_with_progress(url, tmp_name, progress=progress)
  File "/opt/conda/lib/python3.8/site-packages/monai/apps/utils.py", line 86, in _download_with_progress
    raise e
  File "/opt/conda/lib/python3.8/site-packages/monai/apps/utils.py", line 83, in _download_with_progress
    urlretrieve(url, filepath)
  File "/opt/conda/lib/python3.8/urllib/request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/opt/conda/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/conda/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/opt/conda/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/opt/conda/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/opt/conda/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/opt/conda/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: 

----------------------------------------------------------------------

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions