2017-09-28 4 views
0

ERROR: 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 3.2.5 WebSocket Verbindungsfehler; centos7

Es funktioniert gut, wenn ich HTTP benutze, aber wenn ich HTTPS benutze, bekomme ich den obigen Fehler. I versucht auf centos7, Alpine Linux auf Docker: das gleiche Verhalten. Ich auch versuchte https://neo4j.com/developer/kb/explanation-of-error-websocket-connection-failure/: aber es hat nicht für mich funktioniert.

neo4j.conf Snippet:

# Bolt connector 
dbms.connector.bolt.enabled=true 
dbms.connector.bolt.tls_level=OPTIONAL 
dbms.connector.bolt.listen_address=0.0.0.0:7687 

# HTTP Connector. There must be exactly one HTTP connector. 
dbms.connector.http.enabled=true 
dbms.connector.http.listen_address=0.0.0.0:7474 

# HTTPS Connector. There can be zero or one HTTPS connectors. 
dbms.connector.https.enabled=true 
dbms.connector.https.listen_address=0.0.0.0:7473 
+0

Versucht, HTTP Connector auch zu deaktivieren. – Manoj

+0

Habe gerade herausgefunden, dass es das CORS-Problem ist [funktioniert gut, wenn ich CORS im Webbrowser deaktiviere]. Kann mir jemand weiterhelfen, wie lässt sich alles auf dem Webserver für neo4j akzeptieren? – Manoj

Antwort

0

Sieht aus wie Sie Docker verwenden Neo4j Anwendung auszuführen. Sie sollten den gesamten von neo4j verwendeten Port freilegen.

docker run -d -p 7474:7474 -p 7687:7687 -p 7473:7473 neo4j:latest