Skip to content

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

@zhuchaokn

Description

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

  • 其他信息

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions