Skip to content

fail to connect to Neo4j AuraDB #388

Open
@Liuz233

Description

@Liuz233

Here is my config in HTML
When I try to load the draw the graph from Neo4j AuraDB, it failed and show nothing

console in web browser shows
image
But I have write my Neo4j AuraDB url, username, password in config. Why it still try to connect to localhost:7687?

How can I fix it?


    <!-- FIXME: load from dist -->
    <script type="text/javascript" src="../static/neovis.js"></script>


    <script
            src="https://code.jquery.com/jquery-3.2.1.min.js"
            integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
            crossorigin="anonymous"></script>

    <script type="text/javascript">
		// define config car
		// instantiate nodevis object
		// draw

		var viz;

		function draw() {
			var config = {
				containerId: "viz",
				neo4j: {
				server_url: "bolt://xx.xx.xx.xx:7687",
				server_user: "neo4j",
				server_password: "navigators-bowl-flake",
				},
				labels: {
					Character: {
						label: "name",
						value: "pagerank",
						group: "community"
					}
				},
				relationships: {
					INTERACTS: {
						value: "weight"
					}
				},
				initialCypher: "MATCH p=()-->() RETURN p"
			};

			viz = new NeoVis.default(config);
			viz.render();
			console.log(viz);

		}
    </script>
</head>
<body onload="draw()">
<div id="viz"></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions