Showing results for 
Search instead for 
Did you mean: 

Embedded neo4j with HTTP connection

I'm trying to set an HTTP connection to the embedded neo4j server I'm using and test it via neo4j-community-4.4.4 I'm running locally. But I'm getting error:

ServiceUnavailable: 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

(open the developer console didn't provide more details..)


My class connection setting are:

import org.neo4j.configuration.connectors.HttpConnector

final var defaultListen = new SocketAddress("", Integer.parseInt(7474));

final var managementService = new DatabaseManagementServiceBuilder(new File(this.graphDBDataPath))
.setConfig(HttpConnector.listen_address, defaultListen)
.setConfig(HttpConnector.enabled, true)

It is working fine when I use Bolt connection

(the only changes I made are:



instead of


and the port number that was 7687 in Bolt and changed to 7474).