Neo.ClientError.Statement.SemanticError is not thrown to app
Kubera2017 opened this issue · 5 comments
I have in logs DEBUG [bolt4 bolt-204@localhost:7687] Neo4jError: Neo.ClientError.Statement.SemanticError (Cannot merge the following node because of null property value for 'id': (:Node_label {id: null})), But it does not throw an error in session.Run() or tx.Run()
The driver will not report all kinds of errors on the Run method, client code needs to handle errors while iterating as well. So check the error after iterating through the records. That is check what Result.Err() returns after iteration or the error returned from Collect/Single/Consume methods.
Hello. Thanks for response, I think it is better to have it documented, I tested with JS driver, it throws that error directly in .run(), and also Python driver, it throws only in consumption (as in Go)
@Kubera2017 did you have a specific documentation resource in mind? I'm happy to update it to include some error handling examples.
I think just need to add it to README
@Kubera2017 WDYT of #291?