WeRoBot icon indicating copy to clipboard operation
WeRoBot copied to clipboard

使用PG 做session 存储,报错 psycopg2.errors.UndefinedFunction: operator does not exist: character varying = bytea

Open zhuchaokn opened this issue 2 years ago • 0 comments

  • 对 Bug 的描述

    • 当前行为:使用PG 做session 存储
    • 正确的行为:
  • 环境

    • 平台: vercel
    • WeRoBot 版本号:1.13.1
    • Python 版本: 3.9
  • 复现代码或 repo 链接

import psycopg2  # pip install psycopg2-binary
import werobot
from werobot.session.postgresqlstorage import PostgreSQLStorage

conn = psycopg2.connect(host=pgHost, dbname=pgDB, user=pgUser, password=pgPassword)
conn.autocommit = True
session_storage = PostgreSQLStorage(conn)
myrobot = werobot.WeRoBot(token="xxxx", enable_session=True, session_storage=session_storage)
  • 复现步骤

  • 其他信息

zhuchaokn avatar May 15 '23 12:05 zhuchaokn