Closed
Description
I'm getting this error but can't find any information except for the java file printing the error in the docs about this error.
Here's all my (ES 6) code:
import neo4j from 'neo4j-driver';
const neo4jv1 = neo4j.v1;
const driver = neo4jv1.driver('bolt://localhost', neo4jv1.auth.basic('neo4j', 'neo4j'));
const session = driver.session();
session.run('CREATE INDEX ON :Movie(id)')
.then(function(result){
console.log("result!");
console.log(result);
session.close();
driver.close();
})
.catch(function(error) {
console.log("error!");
console.log(error);
driver.close();
});
And the output:
> [email protected] db-init /home/fliq/fliq-api
> node dist/scripts/init-db
error!
Structure {
signature: 127,
fields:
[ { code: 'Neo.ClientError.Request.Invalid',
message: 'No operations allowed until you send an INIT message successfully.' } ] }
Anyone seen this error before?
Metadata
Metadata
Assignees
Labels
No labels