问题描述
我正在使用库 py2neo 开发一个 web 应用程序。
我也在 Heroku 上推送了它,它与 Graphene DB 相连,而在本地它与 Neo4j 数据库相连。
当我在 Heroku 上使用我的 web 应用程序时,出现此错误:
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)
解决方法
您可以放心地忽略这一点。这是一个错误,将在下一个版本中修复。