These are chat archives for neoxygen/neo4j-neoclient

26th
Jan 2016
C. Munisekhar
@sekharchintamani
Jan 26 2016 10:04
hi
C. Munisekhar
@sekharchintamani
Jan 26 2016 10:12
I am able to connect neo4j using php neo4jclient,
but the problem is after connection i am calling $version = $client->getNeo4jVersion();
but it is throwing exception like
Uncaught exception 'Neoxygen\NeoClient\Exception\HttpException' with message 'Error on Connection "default" with message "Client error: GET http://localhost:7474/db/data resulted in a 401 Unauthorized response:\n{\n "errors" : [ {\n "code" : "Neo.ClientError.Security.AuthorizationFailed",\n "message" : "No authorization header (truncated...)\n"' in /usr/local/bin/vendor/neoxygen/neoclient/src/EventListener/HttpRequestEventSubscriber.php:74\nStack trace:\n#0 [internal function]: Neoxygen\NeoClient\EventListener\HttpRequestEventSubscriber->onHttpException(Object(Neoxygen\NeoClient\Event\HttpExceptionEvent), 'neoclient.http...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))\n#1 /usr/local/bin/vendor/symfony/event-dispatcher/EventDispatcher.php(160): call_user_func(Array, Object(Neoxygen\NeoClient\Event\HttpExceptionEvent), 'neoclient.http...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))\n#2 /usr/local/bin/vendor/symfony/event-dispatcher/EventDispatcher. in /usr/local/bin/vendor/neoxygen/neoclient/src/EventListener/HttpRequestEventSubscriber.php on line 74
can you please help me with what is the problem and how can i send credentials using neo4jclient in php