【问题标题】:Certificate Verification Error 1123 discord.py证书验证错误 1123 discord.py
【发布时间】:2021-06-27 03:20:36
【问题描述】:

我试图做出一个简单的不和谐,但我得到了这个错误

ClientConnectorCertificateError(aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True[SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certific

这是我的代码

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='>')

@bot.command()
async def ping(ctx):
    await ctx.send('pong')

bot.run('token')

令牌是我的不和谐令牌

我尝试升级 certifi 和 discord.py 并在 discord.pys github repo 中搜索堆栈溢出和问题页面

请帮忙

谢谢

【问题讨论】:

  • 几乎没有任何信息很难找出问题所在。您能否编辑您的问题以包含相关代码 sn-ps 和您收到的确切错误消息?
  • 你使用的是什么操作系统?
  • 什么是anaconda和conda
  • 我在 mac os 上。

标签: discord.py


【解决方案1】:

尝试使用 discord.Client 而不是 commands.bot。我也遇到了这个错误,这是唯一可以正常工作的解决方案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-25
    • 2012-06-25
    • 1970-01-01
    • 2021-10-30
    • 2019-06-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多