asyncpg.exceptions.DataError:查询参数python的输入无效

2024-05-19 11:31:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我在插入PostgreSQL时遇到问题。 我试图插入的列是JSONB类型。 对象的类型为Counter()

在生产中,它可以工作,但在本地我有一个问题

错误是: asyncpg.exceptions.DataError:查询参数$16:Counter({'clearmeleva':1,'Cr7Fluence…(预期为str,获得计数器)的输入无效。

谢谢大家!


Tags: 对象类型参数postgresql错误counter计数器jsonb

热门问题