-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to rescue a Neo4j Exception within a transaction? #310
Comments
Hello, sorry for the delayed response! This is a big, gaping hole in the docs. It's made more complicated by the fact that the way that sessions are handled changed in version 8.0 of the If I had to guess, I would think that the problem is that because the exception comes from Neo4j, that it is probably being raised through some sort of I would need to look deeper to find the exact problem / solution, but I imagine it would potentially be to not use a transaction inside of |
Thanks, Brian. If you're correct about the issue being inside Has this issue been resolved in the newer versions of the gems? I don't want to undertake a major upgrade unless I know it will resolve the issue. |
Hrmmm, since I haven't tracked down the problem I don't know for sure if it's fixed. I definitely change a lot of things WRT how queries are made in the I'm not sure how big your app is, but it would be good to try the upgrade since you may eventually want to switch to Bolt and all new development is happening on that codebase. I made an upgrade guide to try to help the process, but also definitely drop by Gitter if something is puzzling |
According to the transaction documentation :
NOTE: I'm linking to the older wiki docs because the readthedocs site has no documentation on Transactions, apart from the one-word mention under "Additional features".
However, in the test case below, the transaction appears to be failed automatically anyway, even though the procedural syntax is used to create the transaction. Is this a bug with the code or with the documentation?
Code example
The text was updated successfully, but these errors were encountered: