ssl connection has been closed unexpectedly

Dan Stromberg drsalists at gmail.com
Sun Nov 29 16:29:02 EST 2020


What happens if you execute this from a shell prompt on a system with
openssl installed?
openssl s_client -connect host.com:443

(replacing host.com with your server's hostname and 443 with your port of
interest)


On Sat, Nov 28, 2020 at 3:30 PM Shaozhong SHI <shishaozhong at gmail.com>
wrote:

> Hi,
>
> I keep getting the following error when I use engine =
> create_engine(logging in details to postgres)
> df.to_sql('table_name', and etc.)
>
>
> OperationalError: (psycopg2.OperationalError) SSL connection has been
> closed unexpectedly
>
> (Background on this error at: http://sqlalche.me/e/13/e3q8)
> OperationalError: (psycopg2.OperationalError) SSL connection has been
> closed unexpectedly
>
> Can anyone shed any light on this?
>
> Regards,
>
> David
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list