【问题标题】:ValueError: ('Transaction %r is not open on this connection', <py2neo.client.http.HTTPTransaction object at 0x7fe3fe8f9e80>)ValueError: ('Transaction %r is not open on this connection', <py2neo.client.http.HTTPTransaction object at 0x7fe3fe8f9e80>)
【发布时间】: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


    【解决方案1】:

    您可以放心地忽略这一点。这是一个错误,将在下一个版本中修复。

    【讨论】:

      猜你喜欢
      • 2020-06-28
      • 2020-06-29
      • 2019-02-13
      • 2013-11-25
      • 2021-08-15
      • 2019-05-06
      • 2019-10-09
      • 2021-03-02
      • 1970-01-01
      相关资源
      最近更新 更多