Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

EntityManager::create() problem bolt protocol #161

Open
slavkor opened this issue Oct 30, 2017 · 2 comments
Open

EntityManager::create() problem bolt protocol #161

slavkor opened this issue Oct 30, 2017 · 2 comments

Comments

@slavkor
Copy link

slavkor commented Oct 30, 2017

Hi, i am having some problems.
I want to use the bolt protocol with the EntityManager. When i do the connection with

`
$settings = $c->get('settings');
$connection = 'http://'.$settings['dbclient']['username'].':'.$settings['dbclient']['password'].'@'. $settings['dbclient']['host'].':'.$settings['dbclient']['port'];

$entitymanager = EntityManager::create($connection);
return $entitymanager;
`

it all works ok

but when i do the connection with

`
$settings = $c->get('settings');
$connection = 'bolt://'.$settings['dbclient']['username'].':'.$settings['dbclient']['password'].'@'. $settings['dbclient']['host'].':'.$settings['dbclient']['port'];

$entitymanager = EntityManager::create($connection);
return $entitymanager;
`

then i get the error:

No session registered supporting Version 1213486160

What am i doing wrong??

@theUm
Copy link
Contributor

theUm commented Oct 30, 2017

Do you have same port for bolt and HTTP?

@slavkor
Copy link
Author

slavkor commented Oct 30, 2017

No the ports are diferen for bolt

`# Bolt connector
dbms.connector.bolt.enabled=true
#dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.bolt.listen_address=:7687

HTTP Connector. There must be exactly one HTTP connector.

dbms.connector.http.enabled=true
#dbms.connector.http.listen_address=:7474`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants