I'm coding a discord bot in python. Whenever I try to connect to a specific site, on my EC2 instance running Amazon Linux 2, the script returns the following error:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientConnectorSSLError: Cannot connect to host secure.site.here:443 ssl:None [[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:1076)]
(actual url snipped.)
The bot itself is dockerized, running python:3.7.4-slim-buster
. The error is not present when built with image python:3.7.4-slim-stretch
.
I've also tested the same script built with base image -buster
on MacOS and also a GCP Compute Engine instance, both are error free.
What am I missing? Any tips welcome.