Airbrake Error: Urlopen Error [SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed: Unable To Get Local Issuer Certificate
I had set up Airbrake to work in a Django project using pybrake, but 12 days ago it stopped working and I'm trying to debug the problem. I've created a little 'test project' with a
Solution 1:
Following Airbrake's support, I managed to fix the problem by running the Install Certificates.command
in /Applications/Python 3.7
(on my Mac):
Kurts-MacBook-Pro-2:Python 3.7 kurtpeek$ pwd
/Applications/Python 3.7
Kurts-MacBook-Pro-2:Python 3.7 kurtpeek$ sudo ./"Install Certificates.command"
-- pip install --upgrade certifi
The directory '/Users/kurtpeek/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/kurtpeek/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2018.4.16)
-- removing any existing file or link
-- creating symlink to certifi certificate bundle
-- setting permissions
-- update complete
Now the error raised by urlopen()
has disappeared:
(lucy-web-CVxkrCFK) bash-3.2$ python scripts/airbrake_test2.py
2018-08-09 13:01:09,867 - pybrake - ERROR - get_git_revision failed: [Errno 2] No such file or directory: '/Users/kurtpeek/Documents/Dev/lucy2/lucy-web/.git/HEAD'
and I see the error in our Airbrake console again.
Post a Comment for "Airbrake Error: Urlopen Error [SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed: Unable To Get Local Issuer Certificate"