Question:
Traceback (most recent call last):
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 1050, in create_connection
transport, protocol = await self._create_connection_transport(
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 1080, in _create_connection_transport
await waiter
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/sslproto.py", line 529, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/ssl.py", line 944, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "main.py", line 232, in <module>
bot.run(os.environ['TOKEN'])
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/discord/client.py", line 860, in run
asyncio.run(runner())
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/discord/client.py", line 849, in runner
await self.start(token, reconnect=reconnect)
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/discord/client.py", line 777, in start
await self.login(token)
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/discord/client.py", line 612, in login
data = await self.http.static_login(token)
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/discord/http.py", line 803, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/discord/http.py", line 625, in request
async with self.__session.request(method, url, **kwargs) as response:
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
raise last_exc
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/home/runner/Zark-Bot/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 982, in _wrap_create_connection
raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)')]
Replit Profile: https://replit.com/@