natewong1313 / bird-bot

A Nintendo Switch checkout bot. Currently supports Walmart and Best buy
MIT License
1.18k stars 336 forks source link

Python 3.7 SSL Error #35

Open TimorYang opened 4 years ago

TimorYang commented 4 years ago

error in 'homepage.py' And I import SSL & add some code as 'ssl._create_default_https_context = ssl._create_unverified_context' then run again, the error was not found. please ensure these code is good for work.

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)>
ewong18 commented 4 years ago

I have the same error when starting up the tasks. But then they appear to run fine afterwards. I've had problems Adding to Cart with Best Buy and Auto checkout with Walmart, but I'm unsure if they're related to this error. The item images have also never loaded for me.

TimorYang commented 4 years ago

I fix it, you can try this version

38

ewong18 commented 4 years ago

That got rid of the error. Thanks!