ssl connection has been closed unexpectedly

Shaozhong SHI shishaozhong at gmail.com
Sat Nov 28 18:29:32 EST 2020


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


More information about the Python-list mailing list