2017-01-04 23 views
0

Neo4jを一般的に使用していますが、httpコネクタ上のNeo4j CE 3.1ブラウザは非常にスムーズに動作します。今、私はグラフの視覚化を開発するためにJavaScriptを使用する必要があり、ドライバはまったく動作していません。私がダウンロードしたのNeo4j-JavaScriptをドライバ-1.1、および NPM NPMは、オプションのスキッピングオプションの依存関係をWARNインストール:[email protected]^1.0.0(node_modules \ chokidar \ node_modules \ fsevents): NPMは、オプションの依存関係を飛ばしnotsup WARN:サポートされないプラットフォームを[email protected]:wanted {"os": "darwin"、 "arch": "any"}(現在:{"os": "win32"、 "arch": "x64"})Neo4j javascriptドライバの設定エラー

npm build (fine) 
npm test (problems) 

私が理解できることは、ボルトコネクタを構成する必要があることです。そのため、ボルト接続を有効にするために構成ファイルを追加しました。これにより、メッセージを消すことができなくなりました。私は窓10コマンドプロンプトからこれを試してみましたWebStorm 2016年3月2日の内側から同じ応答を取得している

npm test 
> [email protected] test C:\neo4j-javascript-driver-1.1\neo4j-javascript-driver-1.1 
> gulp test 

[15:00:37] Using gulpfile (node:9436) DeprecationWarning: `DEBUG_FD` is deprecated. Override `debug.log` if you want to use a different log function (https://git.io/vMUyr) 
C:\neo4j-javascript-driver-1.1\neo4j-javascript-driver-1.1\gulpfile.js 
[15:00:37] Starting 'test'... 
[15:00:37] Starting 'nodejs'... 
[15:00:39] Finished 'nodejs' after 1.86 s 
[15:00:39] Starting 'test-nodejs'... 
................Structure { 
    signature: 127, 
    fields: 
    [ { code: 'Neo.ClientError.Security.Unauthorized', 
    message: 'The client is unauthorized due to authentication failure.' } ] } 
FF...........FF.............F(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: This socket has been ended by the other party 
(node:9436) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 
(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: This socket has been ended by the other party 
F(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: This socket has been ended by the other party 
(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: This socket has been ended by the other party 
F(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Error: This socket has been ended by the other party 
(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): Error: This socket has been ended by the other party 
F(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 10): Error: This socket has been ended by the other party 
(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 11): Error: This socket has been ended by the other party 
F(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): Error: This socket has been ended by the other party 
(node:9436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14): Error: This socket has been ended by the other party 
C:\neo4j-javascript-driver-1.1\neo4j-javascript-driver-1.1\test\v1\examples.test.js:195 
expect(out[0].length).toBe(3); 
      ^

TypeError: Cannot read property 'length' of undefined 
at Timeout._onTimeout (C:\neo4j-javascript-driver-1.1\neo4j-javascript-driver-1.1\test\v1\examples.test.js:195:20) 
    at ontimeout (timers.js:365:14) 
    at tryOnTimeout (timers.js:237:5) 
    at Timer.listOnTimeout (timers.js:207:5) 
npm ERR! Test failed. See above for more details. 

Process finished with exit code 1 

私がしようとしたとき、私はまた、次のような応答を取得しています:今、私はこの問題を取得していますローカルホスト:7687を、私は、このポートが唯一のドライバーを通るボルト接続されている間、それは、HTTPを介して接続するので、これは推測

not a WebSocket handshake request: missing upgrade 

を接続することはできませんのエラーを受信したため。

私はlocalhostのhttp接続(ユーザー名とパスワード)の認証持っている:7474ブラウザを、私は、事前に

おかげで、

答えて

1

はそうするボルト接続の認証を設定する方法のあなたの助けに感謝しますあなたがのNeo4jにログインするために使用しているユーザー名とパスワードが間違っているとエラーからかなり明確:

[ { code: 'Neo.ClientError.Security.Unauthorized', 
    message: 'The client is unauthorized due to authentication failure.' } ] 
+0

どうもありがとう、それは、動作するようになりました – Manal