![](/img/trans.png)
[英]Keep Getting <property object at 0x000001F7E7FE6F70>
[英]ValueError: ('Transaction %r is not open on this connection', <py2neo.client.http.HTTPTransaction object at 0x7fe3fe8f9e80>)
我正在使用庫 py2neo 開發一個 webapp。
我還將它推送到 Heroku 上,它與石墨烯數據庫相連,而在本地它與 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)
該錯誤發生了一次,然后不再發生。 但是,錯誤是什么意思?
我無法理解此錯誤的文檔:
def _assert_transaction_open(self, tx): if tx is not self._transaction: raise ValueError("Transaction %r is not open on this connection", tx)
您可以放心地忽略這一點。 這是一個錯誤,將在下一個版本中修復。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.