-
Notifications
You must be signed in to change notification settings - Fork 197
'NoneType' object is not subscriptable #730
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
Comments
Thanks for the report. Unfortunately, I was not able to reproduce it (at least not without waiting 1h, which is a little too long for debugging). But I'm pretty sure that #724 (for 5.0) and #726 (for 4.4) will fix this. I am not quite sure what makes |
We have experienced this issue as well. We are using the neo4j driver version 5.19.0. Can we have you reinvestigate this?
|
@ccloes Could you look at using https://neo4j.com/docs/api/python-driver/current/api.html#liveness-check-timeout-ref it should prevent this exception being thrown in the application layer, and the driver should continue functioning. Could you also provide any further context on how this error occurred? thanks. |
We are using that already. This is how we are trying to utilize it in the context of our NLB.
Do you have any experience with NLB timeouts and how best to mitigate these connection issues? |
While I do not, but it is a good place to start looking(in that we do not see many reporting this issue and load balancers are very capable of creating annoying network behaviours). For a little more context, are you attempting to connect to a neo4j instance through an NLB or is your application behind a NLB and it is reaching out to a neo4j instance i.e. AuraDB? |
Thanks for your input @ccloes. I've moved your comment into a separate issue to track it separately as it's very similar but not quite the same situation as the original post. |
@ccloes can you please take a look at the linked issue and provide the additional information I've requested so that I can continue investigating the error? This would be a tremendous help for us. |
I got an error that the 'NoneType' object is not subscriptable. I created an AsyncGraphDatabase.driver. Got response from neo4j db with the initial request. Later after one hr approx I got the error as below.
Neo4j Version: 4 Professional
Neo4j Mode: Aura DB
Driver version: Python driver 5.0.0a1
Operating System: Windows 11
Steps to reproduce
Expected behavior
The second query shall run successfully
Actual behavior
The text was updated successfully, but these errors were encountered: