错误解释:“WebSocket 连接失败。由于您的网络浏览器的安全限制,此 Neo4j 驱动程序无法获取失败原因…”
在 Neo4j 3.0 及其 Bolt 协议实现中,如果远程浏览器连接到 Neo4j (http://<remote_neo4j_host>:7474) 并尝试进行身份验证,可能会遇到以下错误:
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
此错误可以通过编辑文件 $NEO4J_HOME/conf/neo4j.conf
并取消注释来解决。
# To have Bolt accept non-local connections, uncomment this line:
dbms.connector.bolt.address=0.0.0.0:7687
此页面有帮助吗?