How to Fix SSL Error on Windows 10 for Discord Bot

99封情书 提交于 2020-06-13 06:35:05

问题


I have a Discord bot I've been running on a Windows 10 VM for several months, and yesterday it stopped working with the following error:

raise ClientConnectorCertificateError(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 cerificate (_ssl.c:1108)')]

The only fix I've found online is for MacOS which involves running a .command file.

Note: The bot can be run on my main PC, but it will not run on my secondary PC or any of my VMs.

Any help would be appreciated.

Thanks!


回答1:


I opened discordapp.com in my browser and it suddenly worked.



来源:https://stackoverflow.com/questions/61917944/how-to-fix-ssl-error-on-windows-10-for-discord-bot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!