Skip to content
This repository was archived by the owner on Feb 13, 2021. It is now read-only.

fix ssl error in Python 3.7#38

Open
TimorYang wants to merge 2 commits into
natewong1313:masterfrom
TimorYang:master
Open

fix ssl error in Python 3.7#38
TimorYang wants to merge 2 commits into
natewong1313:masterfrom
TimorYang:master

Conversation

@TimorYang

Copy link
Copy Markdown
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 222, in urlopen

    return opener.open(url, data, timeout)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 525, in open

    response = self._open(req, data)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 543, in _open

    ‘_open’, req)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 503, in _call_chain

    result = func(*args)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 1360, in https_open

    context=self._context, check_hostname=self._check_hostname)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 1319, in do_open

    raise URLError(err)

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>

```
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 222, in urlopen

    return opener.open(url, data, timeout)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 525, in open

    response = self._open(req, data)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 543, in _open

    ‘_open’, req)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 503, in _call_chain

    result = func(*args)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 1360, in https_open

    context=self._context, check_hostname=self._check_hostname)

  File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py”, line 1319, in do_open

    raise URLError(err)

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
```
@TimorYang TimorYang mentioned this pull request Apr 25, 2020
@plowman

plowman commented May 1, 2020

Copy link
Copy Markdown

This just disables SSL verification, right? This seems like a pretty risky change considering the point of this bot is to send credit card information to different sites.

@egiraffe egiraffe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at this stackoverflow answer which doesn't require a code change: https://stackoverflow.com/a/58525755

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants