2017-01-04 4 views
0

Я новичок в Neo4j в целом, но браузер Neo4j CE 3.1 на http-коннекторе работает очень плавно. Теперь мне нужно использовать JavaScript для разработки графических визуализаций, и драйвер вообще не работает. Я скачал Neo4j-JavaScript-водитель-1,1 и НПХ установки НПМ WARN дополнительные Пропустив ДОПОЛНИТЕЛЬНЫЕ зависимости: [email protected]^1.0.0 (node_modules \ сторож \ node_modules \ fsevents): НПМ WARN notsup Пропустив ДОПОЛНИТЕЛЬНЫЕ зависимости: неподдерживаемую платформу для [email protected]: wanted {"os": "darwin", "arch": "any"} (текущий: {"os": "win32", "arch": "x64"})Ошибки настройки драйвера javascript Neo4j

npm build (fine) 
npm test (problems) 

Все, что я мог понять, это то, что разъем болта должен быть настроен, поэтому я добавил в файл конфигурации, чтобы включить соединения болтов. это затруднило соединение сообщения. Теперь я получаю эту проблему:

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 

Я попытался это из окна командной строки 10 и получаю тот же ответ, как внутри WebStorm 2016.3.2,

Я также получаю следующий ответ, когда я попытался локальный: 7687, потому что я получал ошибку не удается подключить

not a WebSocket handshake request: missing upgrade 

Я думаю, это потому, что он подключается через HTTP, в то время как этот порт является болтовое соединение, которое работает только через драйвер.

У меня есть аутентификация для соединения HTTP (имя пользователя и пароль) для локального хоста: 7474 браузера, я ценю вашу помощь о том, как настроить проверку подлинности для болтового соединения,

заранее спасибо,

ответ

1

КАЖЕТСЯ довольно ясно из ошибки, что имя пользователя и пароль, которые вы используете для входа в neo4j, неверны:

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

Спасибо большое, сейчас он работает, – Manal

Смежные вопросы