I use a demo to test the AWS AuraDB, but sometimes it cannot connect and dump stacks. But the official cloud free version and free community version are work right.
The javascript sdk version is 5.17.0, the AWS AuraDB version is 5.
Below is the the error logs and the test code, the attachment is network package captured by wireshark.
import neo4j from "neo4j-driver";
const driver = neo4j.driver(
"neo4j+s://xxxx.databases.neo4j.io",
neo4j.auth.basic("neo4j", "123456"),
{
// The logging block code
logging: {
// setting the logging level to debug, possible options 'debug', 'info', 'warn', 'error'
level: 'debug',
// the logger function. It will receive log level and the message to be logged.
logger: (level, message) => {
console[level].call(console, `${level.toUpperCase()} ${message}`)
}
}
}
);
async function main() {
//console.log(await driver.getServerInfo());
const session = driver.session();
session.run("MATCH (n) RETURN n LIMIT 1").subscribe({
onNext: (record) => {
//console.log(record.get("n").properties);
console.log("##get result")
},
onCompleted: () => {
console.log("onCompleted");
driver.close();
session.close();
},
onError: (error) => {
console.log(error);
driver.close();
},
});
}
main();