zacholade / Rift-Companion

1 stars 0 forks source link

aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host discordapp.com:443 ssl:None [[SSL] unknown error (_ssl.c:847)] #10

Closed zacholade closed 5 years ago

zacholade commented 5 years ago
root@PegaC:/mnt/c/Users/Zacha/Documents/GitHub/Rift-Companion# python3 bot.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/connector.py", line 822, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 809, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 835, in _create_connection_transport
    yield from waiter
  File "/usr/lib/python3.6/asyncio/sslproto.py", line 505, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.6/asyncio/sslproto.py", line 201, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL] unknown error (_ssl.c:847)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "bot.py", line 181, in <module>
    bot.run()
  File "bot.py", line 113, in run
    super().run(config.discord_token, reconnect=True)
  File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 568, in run
    return task.result()
  File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 475, in start
    await self.login(*args, bot=bot)
  File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 346, in login
    await self.http.static_login(token, bot=bot)
  File "/usr/local/lib/python3.6/dist-packages/discord/http.py", line 247, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "/usr/local/lib/python3.6/dist-packages/discord/http.py", line 154, in request
    async with self._session.request(method, url, **kwargs) as r:
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/client.py", line 843, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/client.py", line 366, in _request
    timeout=timeout
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/connector.py", line 445, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/connector.py", line 757, in _create_connection
    req, traces, timeout)
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/connector.py", line 879, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/connector.py", line 862, in _create_direct_connection
    req=req, client_error=client_error)
  File "/usr/local/lib/python3.6/dist-packages/aiohttp/connector.py", line 827, in _wrap_create_connection
    raise ClientConnectorSSLError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host discordapp.com:443 ssl:None [[SSL] unknown error (_ssl.c:847)]

One moment it was working and the next it dies.........

TheSnoozer commented 5 years ago

see https://github.com/Rapptz/discord.py/issues/423

zacholade commented 5 years ago

Checked this out already and it seems to be a different issue although similar. Im not macOS

zacholade commented 5 years ago

Restarted my pc in attempt to fix ( XD ) and now even my discord client cant connect to discord so i imagine discord is shitting itself rn :P Will go to bed and try again in the morning

TheSnoozer commented 5 years ago

LOL also seems related https://github.com/aio-libs/aiohttp/issues/3180

zacholade commented 5 years ago

So a firewall is a thing.