Django + Psycopg2: InterfaceError: only protocol 3 supported

后端 未结 1 1902
执笔经年
执笔经年 2020-12-20 17:47

When loading pages in my Django + Postgresql setup I occasionally get this error but not all the time:

psycopg2 in connect

InterfaceError: only protocol 3 s

相关标签:
1条回答
  • 2020-12-20 17:57

    http://initd.org/psycopg/docs/connection.html#connection.protocol_version

    You didn't provide a version of postgres you are using.
    Seems it's older than 7.4. In that case a solution will be to upgrade version of postgres
    (or install older version of psycopg, but i think it's not good)

    0 讨论(0)
提交回复
热议问题