问题
使用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
注释解开
查看启动日志,看是否修改成功!!!