📅  最后修改于: 2023-12-03 15:18:43.283000             🧑  作者: Mango
This error message is related to psycopg2, a popular Python library for working with PostgreSQL databases. When connecting to a PostgreSQL server, psycopg2 sends a protocol version number to the server. If the server does not support the protocol version requested by the client, the connection attempt fails with this error.
This error can occur for several reasons. One possibility is that you are using an outdated version of psycopg2 that does not support the protocol version that your PostgreSQL server is using. Another possibility is that your PostgreSQL server has been configured to only allow certain protocol versions, and your client is requesting a version that is not supported.
pip install --upgrade psycopg2
If you encounter the psycopg2 OperationalError: fatal: unsupported frontend protocol 1234.5679: server supports 2.0 to 3.0 - TypeScript error, it may be due to an outdated or incompatible version of psycopg2 or a misconfiguration of your PostgreSQL server. Try updating your version of psycopg2 or checking your server settings, and if necessary, downgrading your psycopg2 version or upgrading your PostgreSQL server.