neo4j-javascript-driver icon indicating copy to clipboard operation
neo4j-javascript-driver copied to clipboard

sessionExpired errors when using the driver from nodeJS to aura

Open jroith opened this issue 1 year ago • 7 comments

I'm still getting random sessionExpires errors when connecting to aura even though I have set the max connection timeout to 9 minutes. Wouldn't it be better if the driver would transparently retry instead of failing? And in any case, why can it not just retry with a different or even a new connection?

Also it would be nice to maintain the connections in the pool more actively to prevent this problem.

jroith avatar Aug 28 '23 12:08 jroith

Hi @jroith,

we have methods in the driver which internally retries when some cluster failures happens. The methods are:

Are you using these methods? Could you share some code samples?

bigmontz avatar Aug 29 '23 08:08 bigmontz

This happens from the neo4j GraphQL library and they are using these methods. I will add more logging and try to report more information. Unfortunately the issue is difficult to reproduce and only occurs sometimes.

jroith avatar Aug 29 '23 11:08 jroith

@jroith anything new about this?

bigmontz avatar Oct 27 '23 09:10 bigmontz

Yes, it's getting worse and feels unpredictable for long-running transactions. I'm currently considering running the community or enterprise version instead of aura.

jroith avatar Oct 27 '23 14:10 jroith

Can you share some logs?

bigmontz avatar Oct 30 '23 09:10 bigmontz

@jroith Does the problem persists? Can you share some log?

bigmontz avatar Jan 31 '24 09:01 bigmontz

Not recently. I have just upgraded to 5.17 and will keep monitoring the issue.

jroith avatar Jan 31 '24 11:01 jroith