jazzband / icalevents

Python module for iCal URL/file parsing and querying.
MIT License
160 stars 72 forks source link

Random SSL: WRONG_VERSION_NUMBER from google calendar url #59

Closed steevegl-axes closed 3 weeks ago

steevegl-axes commented 5 years ago

I use icalevents 0.1.22 and google calendar url. I think I'm pulling to often but I tough the http cache was there for that...

...
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\site-packages\icalevents\icalevents.py", line 32, in events
    content = ICalDownload().data_from_url(url, apple_fix=fix_apple)
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\site-packages\icalevents\icaldownload.py", line 56, in data_from_url
    _, content = self.http.request(url)
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\site-packages\httplib2\__init__.py", line 1953, in request
    cachekey,
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\site-packages\httplib2\__init__.py", line 1618, in _request
    conn, request_uri, method, body, headers
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\site-packages\httplib2\__init__.py", line 1556, in _conn_request
    response = conn.getresponse()
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1336, in getresponse
    response.begin()
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 1071, in recv_into
    return self.read(nbytes, buffer)
  File "C:\Users\Steeve\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 929, in read
    return self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2508)
eigenmannmartin commented 3 weeks ago

I am sorry, I cannot reproduce this. I am closing this. Please tell me if this is still pending.