【发布时间】:2020-07-11 05:15:41
【问题描述】:
我正在用 python 制作一个不和谐的机器人。我确实安装了模块并升级了证书,但我仍然遇到以下错误:
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discordapp.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
这是我的代码:
import discord
client = discord.Client()
client.run(token)
不会显示我的令牌,但你知道我的意思。 你能帮帮我吗?
【问题讨论】:
-
你在 Mac 上使用 python 3.6 吗?
-
我使用的是 python 3.8。导入不和谐不会给我模块错误。
-
github.com/Rapptz/discord.py/issues/423 认为这可能是您的问题,但那时不应该。
-
我已经读过了。
标签: python python-3.x certificate discord.py discord.py-rewrite