blynk-library-python icon indicating copy to clipboard operation
blynk-library-python copied to clipboard

ssl error on connection

Open defaliz opened this issue 4 years ago • 2 comments

hi, i use the script example 01_virtual_write.py on my local server on a pi zero with the code blynk = BlynkLib.Blynk(BLYNK_AUTH, server='x.x.x.x', port=8080) And i have the error below.. i don't know why because i use the same code on another pizero whitout error.. can you help ? best regards Alain

Connecting to x.x.x.x:8080... Traceback (most recent call last): File "01_virtual_write.py", line 19, in blynk = BlynkLib.Blynk(BLYNK_AUTH, server='13.59.253.251', port=8080) File "build/bdist.linux-armv6l/egg/BlynkLib.py", line 214, in init File "build/bdist.linux-armv6l/egg/BlynkLib.py", line 81, in init File "build/bdist.linux-armv6l/egg/BlynkLib.py", line 240, in connect File "/usr/lib/python2.7/ssl.py", line 369, in wrap_socket _context=self) File "/usr/lib/python2.7/ssl.py", line 599, in init self.do_handshake() File "/usr/lib/python2.7/ssl.py", line 828, in do_handshake self._sslobj.do_handshake() socket.error: [Errno 0] Error

defaliz avatar Aug 15 '21 20:08 defaliz

Change port BlynkLib.Blynk(BLYNK_AUTH, server='x.x.x.x', port=443)

Un-ka avatar Nov 02 '21 07:11 Un-ka

great un-ka ! that works now.. regards

defaliz avatar Nov 02 '21 09:11 defaliz