-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Labels
Description
Suggestion
I noticed the _set_defunct method of the bolt protocol files completely hides the underlying error message:
neo4j-python-driver/neo4j/io/_bolt4x0.py
Line 367 in 2d55eae
def _set_defunct(self, error=None):
In my case I get a OSError from IncomingMessage:
- Method passed here:
neo4j-python-driver/neo4j/io/_bolt4x0.py
Line 85 in 2d55eae
self.inbox = Inbox(self.socket, on_error=self._set_defunct) - Error triggered here:
neo4j-python-driver/neo4j/io/_courier.py
Line 63 in 2d55eae
self.on_error(error)
When I get this "Failed to read from defunct connection" error, I don't really know what to do and have absolutely no way to retrieve the original error for hints.