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
[Bug] SSLCertVerificationError for URL with valid certificate. #310
Comments
I just tested this and in my environment it worked fine:
|
I think that I have identified the problem. It depends on the amount of active/opened connections by your script. You can handle this issue in two possible ways. $ ulimit -n 1048576
$ python your_script.py The second method (in the script, I put it in the main file) import resource
resource.setrlimit(resource.RLIMIT_OFILE, (1048576, 1048576)) where the number 1048576 is the integer that I choose. I hope it will be useful |
But in the code I used (in the 1st comment) shouldn't the number of open connections be one since it is fetching only one URL? |
feedparser is migrating off custom HTTP client code and will rely exclusively on the The new code has not been released yet, but because |
When I try to fetch https://lobste.rs/t/security.rss, it shows a SSLCertVerificationError even though the site is opening for me on Firefox, Chrome, the terminal (through curl) and I am also able to fetch the feed through the requests library (without disabling certificate verification).
Do you have any idea why an SSL error occurring on feedparser? Does it use a custom certificate library? The site has a valid certificate and I also ran tests from SSL Labs on it (It got an A+ grade).
For now, I am fetching the feed through
requests.get(url)
and then sending it to feedparser, but I am concerned about the security implications of sending untrusted xml/html to feedparser.The text was updated successfully, but these errors were encountered: