【发布时间】:2020-12-30 18:09:58
【问题描述】:
我正在使用库 py2neo 开发一个 webapp。
我还把它推到了 Heroku 上,它连接了一个 Graphene DB,而在本地它连接了一个 Neo4j 数据库。
当我在 Heroku 上使用我的 webapp 时,我收到了这个错误:
ValueError: ('Transaction %r is not open on this connection', <py2neo.client.http.HTTPTransaction object at 0x7fe3fe8f9e80>)
由于我还有debug=True,所以我可以看到webapp尝试合并关系时发生了错误
rel = Relationship(...
graph.merge(rel)
此错误发生了一次,然后不再发生。 但是,错误是什么意思?
对于这个错误,我无法理解 documentation:
def _assert_transaction_open(self, tx): if tx is not self._transaction: raise ValueError("Transaction %r is not open on this connection", tx)
【问题讨论】:
标签: python heroku neo4j py2neo graphenedb