Forums

SSL issues with a discord bot

Hello,

I'm encountering an issue with my Discord bot hosted on PythonAnywhere. The bot is unable to connect to Discord's servers due to a ConnectionRefusedError on port 443. Below are the details of the issue:

  • Error Message: ConnectionRefusedError: [Errno 111] Connection refused
  • IP Address: 162.159.138.232
  • Port: 443
  • Browsers and Devices: Using safari on iPad, site won’t work in other browsers.
  • Steps Taken:
  • Verified my internet connection is stable.
  • Checked Discord's server status and confirmed it's operational.
  • Ensured my firewall/antivirus isn't blocking the connection.
  • Verified the validity of my Discord token.
  • Cleared browser cache and cookies.
  • Attempted to connect using different DNS settings (Google Public DNS and Cloudflare).
  • Tried accessing PythonAnywhere from different networks and devices.

Despite these efforts, the issue persists. I suspect it might be an issue related to PythonAnywhere’s network settings or SSL/TLS configurations for port 443.

Any assistance or guidance you can provide would be greatly appreciated.

Thanks in advance for your help!

Take a look at https://help.pythonanywhere.com/pages/403ForbiddenError/