Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.get_default_hrirs broken #36

Open
mmjamm opened this issue Jan 27, 2025 · 0 comments
Open

io.get_default_hrirs broken #36

mmjamm opened this issue Jan 27, 2025 · 0 comments

Comments

@mmjamm
Copy link

mmjamm commented Jan 27, 2025

Hi!

The get_default_hrirs() method in the io package seems to be broken.
Calling with default parameters gives the following error:
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

It might be that something has happened on the server, where the default hrir files are loaded from.
The problem is coming from line in the source code:

r = requests.get("https://depositonce.tu-berlin.de/bitstream/11303/"
                         "6153.5/9/HRIRs_neutral_head_orientation_v4.zip")

I was able to find three different workarounds to get it working.

  1. change https to http in the URL:
    r = requests.get('http://depositonce.tu-berlin.de/bitstream/11303/6153.5/9/HRIRs_neutral_head_orientation_v4.zip')

  2. Use an URL with less redirects:
    r = requests.get("https://depositonce.tu-berlin.de/bitstreams/91447f43-b5c3-446a-bb7e-0d9e53f95ff9/download")

  3. Disable use of http2 (not sure what this means. ChatGPT told me to do it 😆 )
    r = requests.get('https://depositonce.tu-berlin.de/bitstream/11303/6153.5/9/HRIRs_neutral_head_orientation_v4.zip', headers={'Connection': 'close'})

Option 2 is my favorite, but you choose..

Thanks for the excellent library. I use it all the time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant