Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhuchaokn opened this issue May 15, 2023 · 0 comments

Comments

@zhuchaokn
Copy link

  • 对 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)
  • 复现步骤

  • 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant