Skip to content

No operations allowed until you send an INIT message successfully #119

Closed
@teameh

Description

@teameh

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions