Closed Mingaaaaaaa closed 1 year ago
Neovis does support wss, you'll need to use bolt+s though instead of bolt
But when I tried bolt+s or neo4j+s it became another error.
And I find a similar issue on https://github.com/grand-stack/grand-stack-starter/issues/129.
still don't know how to solve this .
Can I close?
maybe not, I try the config but still send a ws request
Can you send a censored config as text here?
Ohh you're using the config incorrectly, not server_url
, serverUrl
unless you are using 1.x for some reason
Same with user and password
sry I did use the 1.4.0 cause I fork an old repo config below
const config = {
container_id: 'id1',
server_url: "neo4j://xxxxx",
server_user: "xxxx",
server_password: "xxxxx",
driverConfig: {
encrypted: "ENCRYPTION_ON",
trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"
},
labels: {
Troll: {
caption: "user_key",
size: "pagerank",
community: "community",
},
},
relationships: {
RETWEETS: {
caption: false,
thickness: "count",
},
},
initial_cypher: "MATCH (n) RETURN n LIMIT 25"
};
If you're using old 1.x you need to put encrypted and trust flat on the config instead of inside driverConfig
const config = {
container_id: 'id1',
server_url: "neo4j://xxxxx",
server_user: "xxxx",
server_password: "xxxxx",
encrypted: "ENCRYPTION_ON",
trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"
labels: {
Troll: {
caption: "user_key",
size: "pagerank",
community: "community",
},
},
relationships: {
RETWEETS: {
caption: false,
thickness: "count",
},
},
initial_cypher: "MATCH (n) RETURN n LIMIT 25"
};
though I do suggest using 2.x as it is much more flexible and can do pretty much everything vis network can do
wss work!
but
Neo4jError: Could not perform discovery. No routing servers available. Known routing table: RoutingTable[database=default database, expirationTime=0, currentTime=1682267644588, routers=[], readers=[], writers=[]]
is this mean my server need to config something?
I actually never saw this bug 😅
https://github.com/neo4j/neo4j-javascript-driver/issues/516 Probably this?
Anyway, closing as complete, good luck! 😄
I deploy my web on https (mini program required) but I find out that the graph can't render cause it send a wss request to my server.![image](https://user-images.githubusercontent.com/96101748/233790503-680d29c5-2864-43fd-82c1-8d87e5582338.png)