连接到neo4j时WebSocket握手错误

时间:2018-11-02 15:25:29

标签: angular neo4j

遇到类似失败的错误:

  

WebSocket握手过程中的错误:意外的响应代码:200。

连接已成功建立,但是在尝试执行查询时遇到错误。在有角项目中可用here

代码如下:

this.neo4j
  .connect(
    url,
    username,
    password,
    encrypted
  )
  .then(driver => {
    if (driver) {

      console.log(`Successfully connected to ${url}`, driver);
      debugger;
      this.neo4j.run(‘query').then(res => {
        console.log(res);
        this.neo4j.disconnect();
      });

    }

  });

在此错误。neo4j.run('query')

0 个答案:

没有答案