Neo4 giving error:“ Uncaught exception 'Everyman\Neo4j\Exception' with message 'Unable to retrieve server info [500]:”

倖福魔咒の 提交于 2019-12-12 05:05:15

问题


require('phar://neo4jphp.phar');  
$client = new Everyman\Neo4j\Client();
if($client)
{  
    echo 'Connected';
}

i am using neo4j version 1.9 RC1, i am able to access server via myip:7474, Curl is Enabled.

Error is :

couldn't connect Host[7]

Please Help


回答1:


In order to create the client, you must specify the transport you want to use, if you want to use Curl:

$client = new Everyman\Neo4j\Client(new Everyman\Neo4j\Transport\Curl('localhost', 7474)); 

or with Stream:

$client = new Everyman\Neo4j\Client(new Everyman\Neo4j\Transport\Stream('localhost', 7474));


来源:https://stackoverflow.com/questions/16386164/neo4-giving-error-uncaught-exception-everyman-neo4j-exception-with-message

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!