简体   繁体   English

ValueError: ('事务 %r 未在此连接上打开',<py2neo.client.http.httptransaction object at 0x7fe3fe8f9e80> )</py2neo.client.http.httptransaction>

[英]ValueError: ('Transaction %r is not open on this connection', <py2neo.client.http.HTTPTransaction object at 0x7fe3fe8f9e80>)

I am developing a webapp using the library py2neo.我正在使用库 py2neo 开发一个 webapp。

I also pushed it on Heroku, where it is connected with a Graphene DB, while locally it is connected with a Neo4j database.我还将它推送到 Heroku 上,它与石墨烯数据库相连,而在本地它与 Neo4j 数据库相连。

As I was using my webapp on Heroku, I got this error:当我在 Heroku 上使用我的 webapp 时,我收到了这个错误:

ValueError: ('Transaction %r is not open on this connection', <py2neo.client.http.HTTPTransaction object at 0x7fe3fe8f9e80>)

Since I still have debug=True , I can see that the error happened when the webapp tryed to merge a relationship由于我仍然有debug=True ,我可以看到当 webapp 尝试合并关系时发生了错误

rel = Relationship(...
graph.merge(rel)

This error happed once, and then did not occurr anymore.该错误发生了一次,然后不再发生。 However, what does the error mean?但是,错误是什么意思?

I cant't understand the documentation for this error:我无法理解此错误的文档

 def _assert_transaction_open(self, tx): if tx is not self._transaction: raise ValueError("Transaction %r is not open on this connection", tx)

You can safely ignore this.您可以放心地忽略这一点。 It's a bug which will be fixed in the next release.这是一个错误,将在下一个版本中修复。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 继续获取<property object at 0x000001f7e7fe6f70></property> - Keep Getting <property object at 0x000001F7E7FE6F70> <sqlite3.Row对象位于0x1017fe3f0>而不是数据库内容 - <sqlite3.Row object at 0x1017fe3f0> instead of database contents PyAutoGUI Mac 生成器对象 _locateAll_opencv 位于 0x7fe8faab6eb0 - PyAutoGUI Mac generator object _locateAll_opencv at 0x7fe8faab6eb0 Python 不读取 unicode U + FE0F - Python does not read unicode U + FE0F ValueError:无法序列化: <myproject.storage.AzureStorage object at 0x7f85185e66d0> - ValueError: Cannot serialize: <myproject.storage.AzureStorage object at 0x7f85185e66d0> Django 4 使用密码文件连接到 Postgresql:“fe_sendauth:未提供密码” - Django 4 connection to Postgresql using passfile: "fe_sendauth: no password supplied" ( <type 'exceptions.ValueError'> ,ValueError(&#39;需要超过1个值来解包&#39;,), <traceback object at 0x7f24dea1a0e0> )NULL NULL NULL - (<type 'exceptions.ValueError'>, ValueError('need more than 1 value to unpack',), <traceback object at 0x7f24dea1a0e0>) NULL NULL NULL Python 数据库连接:值错误:<cx_Oracle.LOB object at 0x000001CB4819E5A0> 不是 unicode 或序列 - Python DB Connection: ValueError: <cx_Oracle.LOB object at 0x000001CB4819E5A0> is not unicode or sequence Django HTTP_HOST标头无效:&#39;\\ x80 \\ xc7 \\ xda \\ x9e&#39; - Django Invalid HTTP_HOST header: '\x80\xc7\xda\x9e' 我在执行python时收到错误 <function personAge at 0x101fe6050> 而不是价值 - I am receiving an error when executing python <function personAge at 0x101fe6050> instead of the value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM