Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

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

Closed
zacholade opened this issue Dec 18, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@zacholade
Copy link
Owner

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.........

@zacholade zacholade added the bug Something isn't working label Dec 18, 2018
@TheSnoozer
Copy link
Collaborator

see Rapptz/discord.py#423

@TheSnoozer TheSnoozer changed the title Idk what happened aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host discordapp.com:443 ssl:None [[SSL] unknown error (_ssl.c:847)] Dec 18, 2018
@zacholade
Copy link
Owner Author

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

@zacholade
Copy link
Owner Author

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
Copy link
Collaborator

LOL also seems related aio-libs/aiohttp#3180

@zacholade
Copy link
Owner Author

So a firewall is a thing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants