Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
540 views
in Technique[技术] by (71.8m points)

python - 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.

I also pushed it on Heroku, where it is connected with a Graphene DB, while locally it is connected with a Neo4j database.

As I was using my webapp on Heroku, I got this error:

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

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)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can safely ignore this. It's a bug which will be fixed in the next release.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...