Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run discord bot, with SSL error. #5967

Closed
CocoaCrispies opened this issue Oct 25, 2020 · 5 comments
Closed

Cannot run discord bot, with SSL error. #5967

CocoaCrispies opened this issue Oct 25, 2020 · 5 comments
Labels
bug This is a bug with the library. dep bug A bug with the dependencies

Comments

@CocoaCrispies
Copy link

Summary

Whenever I try to run my discord bot, I get an error from aiohttp, talking about how my SSL certificates are outdated. I tried this on a VPS and local, and same error everytime.

Reproduction Steps

I simply run by bot's server.py file, and get the error. I haven't changed anything and get this error.

Expected Results

My bot to run normally.

Actual Results

My error:
raise ClientConnectorCertificateError( aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '162.159.135.232'. (_ssl.c:1122)")]

Intents

N/A

Checklist

  • [ x] I have searched the open issues for duplicates.
  • [x ] I have shown the entire traceback, if possible.
  • [ x] I have removed my token from display, if visible.
  • [ x] I have provided the intents that my bot is using.

System Information

  • Python v3.9.0-final
  • discord.py v1.5.1-final
  • aiohttp v3.7.0
  • system info: Windows 10 10.0.1904`
@CocoaCrispies CocoaCrispies added the bug This is a bug with the library. label Oct 25, 2020
@Zomatree
Copy link
Contributor

downgrade aiohttp to 3.6.3, discord.py's requirements.txt states aiohttp's version should not be 3.7.0

@CocoaCrispies
Copy link
Author

CocoaCrispies commented Oct 25, 2020

downgrade aiohttp to 3.6.3, discord.py's requirements.txt states aiohttp's version should not be 3.7.0

How would I go about doing that?
@Zomatree

@pikaninja
Copy link
Contributor

you can downgrade with pip, something like pip install aiohttp==3.6.3

@CocoaCrispies
Copy link
Author

This solved it, ty.

@Harmon758
Copy link
Contributor

This was a bug in aiohttp 3.7.0 that was fixed in aiohttp 3.7.1.
Since it's now supported, upgrading to aiohttp > 3.7.0 should also resolve this issue.

For task list usage, see https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/about-task-lists.

@dpy-manager-bot dpy-manager-bot added the dep bug A bug with the dependencies label Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug with the library. dep bug A bug with the dependencies
Projects
None yet
Development

No branches or pull requests

5 participants