neo4j-contrib / neovis.js

Neo4j + vis.js = neovis.js. Graph visualizations in the browser with data from Neo4j.
Apache License 2.0
1.61k stars 324 forks source link

Different situations on different browser #344

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",
                },
                }
}

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=[]]

thebestnom commented 1 year ago

Hey, this is a neo4j driver problem https://aura.support.neo4j.com/hc/en-us/articles/5290730835859--Could-not-perform-discovery-No-routing-servers-available-while-connecting-to-an-AuraDB-instance-from-Neo4j-browser Good luck!

Mingaaaaaaa commented 1 year ago

I read this, and I still don't know why . I test my 443、7687 and 7474 port ,all fine .
And I can connect on Edge and Firefox ,so it should't be fail login , but the fact that I can't connect on Chrome is confusing me cause it also supported browser.😫

thebestnom commented 1 year ago

Try connecting from the neo4j website, and see if it's different

Mingaaaaaaa commented 1 year ago
image

How can I figure it out. ? I can connect on my own web

thebestnom commented 1 year ago

Try opening dev tools and see if the network tab gives more information, more than that I have no idea 😅 that's a driver bug, not neovis.js one

Mingaaaaaaa commented 1 year ago

ok, just now I try connect on edge and firefox also success,but fail in chrome...

image image

thebestnom commented 1 year ago

https://github.com/neo4j/neo4j-javascript-driver/issues/516 Maybe this will help?