Skip to content

test case downloading issue  #4760

@wyli

Description

@wyli

Describe the bug

[2022-07-25T13:49:44.874Z] ======================================================================
[2022-07-25T13:49:44.874Z] ERROR: test_lr_finder (tests.test_lr_finder.TestLRFinder)
[2022-07-25T13:49:44.874Z] ----------------------------------------------------------------------
[2022-07-25T13:49:44.874Z] Traceback (most recent call last):
[2022-07-25T13:49:44.874Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_lr_finder.py", line 72, in test_lr_finder
[2022-07-25T13:49:44.874Z]     num_workers=2,
[2022-07-25T13:49:44.874Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/datasets.py", line 118, in __init__
[2022-07-25T13:49:44.874Z]     progress=progress,
[2022-07-25T13:49:44.874Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/utils.py", line 312, in download_and_extract
[2022-07-25T13:49:44.874Z]     download_url(url=url, filepath=filename, hash_val=hash_val, hash_type=hash_type, progress=progress)
[2022-07-25T13:49:44.874Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/utils.py", line 203, in download_url
[2022-07-25T13:49:44.874Z]     _download_with_progress(url, tmp_name, progress=progress)
[2022-07-25T13:49:44.874Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/utils.py", line 114, in _download_with_progress
[2022-07-25T13:49:44.874Z]     raise e
[2022-07-25T13:49:44.874Z]   File "/home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/utils.py", line 107, in _download_with_progress
[2022-07-25T13:49:44.874Z]     urlretrieve(url, filepath, reporthook=t.update_to)
[2022-07-25T13:49:44.874Z]   File "/usr/lib/python3.7/urllib/request.py", line 276, in urlretrieve
[2022-07-25T13:49:44.874Z]     block = fp.read(bs)
[2022-07-25T13:49:44.874Z]   File "/usr/lib/python3.7/http/client.py", line 461, in read
[2022-07-25T13:49:44.874Z]     n = self.readinto(b)
[2022-07-25T13:49:44.874Z]   File "/usr/lib/python3.7/http/client.py", line 505, in readinto
[2022-07-25T13:49:44.874Z]     n = self.fp.readinto(b)
[2022-07-25T13:49:44.874Z]   File "/usr/lib/python3.7/socket.py", line 589, in readinto
[2022-07-25T13:49:44.874Z]     return self._sock.recv_into(b)
[2022-07-25T13:49:44.874Z]   File "/usr/lib/python3.7/ssl.py", line 1071, in recv_into
[2022-07-25T13:49:44.874Z]     return self.read(nbytes, buffer)
[2022-07-25T13:49:44.874Z]   File "/usr/lib/python3.7/ssl.py", line 929, in read
[2022-07-25T13:49:44.874Z]     return self._sslobj.read(len, buffer)
[2022-07-25T13:49:44.874Z] ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2508)
[2022-07-25T13:49:44.874Z] 
[2022-07-25T13:49:44.874Z] ----------------------------------------------------------------------

I'm trying to create a workaround within #4758 to unblock the PR merging. cc @YanxuanLiu

Metadata

Metadata

Assignees

No one assigned

    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