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

urllib3.exceptions.SSLError when downloading nime2013_113.pdf #4

Closed
stefanofasciani opened this issue Feb 4, 2022 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@stefanofasciani
Copy link
Collaborator

stefanofasciani commented Feb 4, 2022

The paper "Now on: New Interfaces for Traditional Korean Music and Dance" (http://www.nime.org/proceedings/2013/nime2013_113.pdf) triggers the following exception:

urllib3.exceptions.SSLError: [SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:2570)

at line 201 of https://github.com/jacksongoode/NIME-proceedings-analyzer/blob/main/pa_extract.py

According to other users affected by same/similar problem, it may be due to a bug of openssl (on a specific version) on the server side.

However, this issue happens only with nime2013_113.pdf, which is the largest pdf in the nime proceedings (80+ MB), which it has not yet been fixed NIME-conference/NIME-bibliography#61 .

This issue may not affect all machines. At the moment a simple workaround is to manually download http://www.nime.org/proceedings/2013/nime2013_113.pdf and move into cache/pdf/ .

Wrapping line 225 of pa_extract.py with try/except solves the issue, but then it triggers another "file not found" error (i.e. the whole follow up code has to be change to work without the downloaded pdf file).

To replicate the issue it is sufficient to run the following lines:

import requests
url = "http://www.nime.org/proceedings/2013/nime2013_113.pdf"
r = requests.get(url, allow_redirects=True)
open("./test.pdf", 'wb').write(r.content)

@stefanofasciani stefanofasciani added the bug Something isn't working label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants