问题

使用vue-neo4j连接neo4j数据库时,控制栏出现以下问题:

  • neo4j版本为4.4.5

Uncaught (in promise) Neo4jError: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket readyState is: 3

在这里插入图片描述

解决方案

  • bolt的地址改为0.0.0.0
  • 或者把dbms.default_listen_address=0.0.0.0注释解开
    在这里插入图片描述

查看启动日志,看是否修改成功!!!

在这里插入图片描述

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐