HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.37k stars 2.27k forks source link

SSL: CERTIFICATE_VERIFY_FAILED #1239

Closed shirishag75 closed 6 years ago

shirishag75 commented 6 years ago

Step 1: Please describe your environment

Step 2: Describe the problem:

FileServer [OK :)] Port open: Error: URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)> in FileServer.py line 142 > urllib2.py line 154 > urllib2.py line 429 > urllib2.py line 447 > urllib2.py line 407 > urllib2.py line 1241 > urllib2.py line 1198

Steps to reproduce:

~/games/ZeroNet-master % python zeronet.py

Observed Results:

08:11:05] FileServer [OK :)] Port open: Error: URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)> in FileServer.py line 142 > urllib2.py line 154 > urllib2.py line 429 > urllib2.py line 447 > urllib2.py line 407 > urllib2.py line 1241 > urllib2.py line 1198

Expected Results:

It should not have done that.

purplesyringa commented 6 years ago

ZeroNet uses portchecker.co to test if port is open. Looks like it is down.

@HelloZeroNet We should check for errors before searching for open, and fallback to P2P check.

purplesyringa commented 6 years ago

@HelloZeroNet I'll make a PR.

purplesyringa commented 6 years ago

@HelloZeroNet I've made a PR #1240.