neo4j / neo4j-javascript-driver

Neo4j Bolt driver for JavaScript
https://neo4j.com/docs/javascript-manual/current/
Apache License 2.0
858 stars 147 forks source link

Different situations on different browser #1084

Closed Mingaaaaaaa closed 1 year ago

Mingaaaaaaa commented 1 year ago

Hi,I use your Neovis.js Simple Example HTML to link my neo4j database on my server.And I deploy it on here. and here
But I found out that my Edge、Safari and Firefox work successfully. but in Chrome or on my phone It can't work

{
neo4j: {
                    serverUrl: "neo4j://ysjy.alplune.top",
                    serverUser: "aaaa",
                    serverPassword: "aaaa",
                    driverConfig: {
                    encrypted: "ENCRYPTION_ON",
                    trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",
                },
                }
}

I read this article,but did't work What I want to do is visit this web via web-view on phone. But It will console the same error :

neovis.js@2.0.2:2 Neo4jError: Could not perform discovery. No routing servers available. Known routing table: RoutingTable[database=default database, expirationTime=0, currentTime=1683984347375, routers=[], readers=[], writers=[]]

bigmontz commented 1 year ago

@Mingaaaaaaa, can you try to enable driver logs as debug?

{
neo4j: {
                    serverUrl: "neo4j://ysjy.alplune.top",
                    serverUser: "aaaa",
                    serverPassword: "aaaa",
                    driverConfig: {
                       encrypted: "ENCRYPTION_ON",
                       trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",
                       logging: neo4j.logging.console("debug"), // enabling debug log. 
                    },
                }
}

This error can be related several root causes and the logs might help to understand the issue.

See: https://neo4j.com/docs/api/javascript-driver/5.9/function/index.html#static-function-driver

bigmontz commented 1 year ago

Issue closed due inactivity. Please, open again the issue if the error persists and you have more evidences.