Neo4jError: Connection acquisition timed out in 60000 ms

Hi,
I am frequently getting this error while making concurrent requests.
Neo4jError: Connection acquisition timed out in 60000 ms. Pool status: Active conn count = 0, Idle conn count = 0.

I am using "neo4j-driver": "^4.4.1" and Neo4j db 4.0.2
How to resolve this issue? Please help.

Hello @mad_shivam111 and welcome to the Neo4j community :slight_smile:

The driver version should follow the Neo4j version so in your case the driver version should start with 4.0.x. The latest version number does not matter.

Regards,
Cobra

Thank you @cobra
So every time driver version should follow db version?
In future if I upgrade db version, driver should also be upgraded?

Yes, that's it, with Neo4j 4.1 you will have to use driver version 4.1.x.

Please see driver compatability matrix in Neo4j operations manual.Also carefully refer to guided upgrade path for Neo4j versions.
Thanks
Sameer S Gijare

As suggested I changed the neo4j driver version.
I am still getting the same error :
Neo4jError: Connection acquisition timed out in 60000 ms. Pool status: Active conn count = 100, Idle conn count = 0.
I am closing the each session with await session.close()

Hi, thank you. I check the compatibility matrix, found that driver 4.4 is compatible with db 4.0
But just to avoid issue i changed the driver version to 4.0, I am still facing the issue.

Hello
Please increase connection timeout period in configuration file and try to execute a very simple query to check that it works.Afterword try complex queries that fetch data relevant to your project.Also get the data packs in manageable chunks so that your program can digest that information(data).
Many thanks
Mr G Sameer8