I'm using the Neo4j Driver (4.2.0) to connect to Aura, but I'm receiving constant errors about clusters, and router tables, and I can see from the forum that others are having similar issues. This is my first time deploying to Aura.
For example, yesterday i received the error:
Failed to acquire a connection from connection pool for server with URI
So I changed my driver settings in Startup.cs to:
var driver = GraphDatabase.Driver(url, AuthTokens.Basic(username, password), o =>
{
o.WithSocketKeepAliveEnabled(true);
o.WithMaxConnectionLifetime(TimeSpan.MaxValue);
});
services.AddSingleton(driver);
and when I logged into to my web app this morning I couldn't connect to Aura with a new error:
Failed to connect to any routing server. Please make sure that the cluster is up and can be accessed by the driver and retry.
To be honest I have no idea, how to configure the driver to resolve this. I had expected to set the connection string to Aura and away I go, but I'm confused by these routing error messages. I'm also confused by some examples of the URI being "bolt+routing" (which the driver doesn't support), and "neo4j+s" (which I'm using)
Are there any recommended values specifically for Aura for these settings:
WithConnectionAcquisitionTimeout
WithConnectionIdleTimeout
WithConnectionTimeout
WithDefaultReadBufferSize
WithDefaultWriteBufferSize
WithEncryptionLevel
WithFetchSize
WithIpv6Enabled
WithMaxConnectionLifetime
WithMaxConnectionPoolSize
WithResolver
WithMaxTransactionRetryTime