Skip to content

driver.onCompleted not executing; driver.onError not executing too. #234

Closed
@Jabher

Description

@Jabher

So, I've started using this driver after a few months of not using, and everything was crashing - it looked like driver is not instantating.
After some investigations I've discovered that my app was waiting for driver.onCompleted to execute, but it never executed.

However, if I would remove line of waiting driver.onCompleted to run, everything starts to work fine.
Same for driver.onError. I cannot detect whether credentials are bad or I can perform the requests properly.
IDK why this is happening as I've installed older (1.1.0 version) which was working fine with this API. Also I've used neo4j 3.0.x (cannot definitely recall the exact version) and then upgraded to 3.1.4, thinking that it can be newer driver-older db issue, still did not help.

▶ node    
> const {v1: neo4j} = require('neo4j-driver')
undefined
> driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "password1")); driver.onError = console.log.bind(console, 'err');
[Function: bound bound log]
> driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "password")); driver.onCompleted = console.log.bind(console, 'completed');
[Function: bound bound log]
> 

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