Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Neo4j-3D无法运行 #2

Closed
Zhang-JiaYu opened this issue Aug 16, 2020 · 3 comments
Closed

Neo4j-3D无法运行 #2

Zhang-JiaYu opened this issue Aug 16, 2020 · 3 comments

Comments

@Zhang-JiaYu
Copy link

Zhang-JiaYu commented Aug 16, 2020

运行时会报错:
Error: Unknown Bolt protocol version: 0
at new n (neo4j-color-min.js:17)
at t (neo4j-color-min.js:17)
at l._ch.onmessage (neo4j-color-min.js:18)
at WebSocket._ws.onmessage (neo4j-color-min.js:18)
这和系统有关吗?您用的是Mac吗?
我也看到您在博客上说翻墙试一下,也进行了尝试,结果也会报错。

@xyjigsaw
Copy link
Owner

按常理来说好像可以直接运行的,与操作系统无关吧,确实是需要翻墙;你可以换个浏览器,如果还不行你看看这个js的服务器是否还有服务。

@Zhang-JiaYu
Copy link
Author

Zhang-JiaYu commented Aug 17, 2020

这个问题我尝试解决了一下,是这个驱动的问题。将index中的<script src="neo4j-color-min.js"></script>换成<script src="https://unpkg.com/neo4j-driver@4.0.2/lib/browser/neo4j-web.min.js"></script>就可以了,更多替换方法可以看https://neo4j.com/docs/api/javascript-driver/current/

@xyjigsaw
Copy link
Owner

好的,谢谢~

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants