Closed CalElAn closed 2 months ago
Hey @CalElAn. I see from your library version, you're using dev-main
. Could you confirm if this is still reproducible on the latest stable version of the library?
Hi, thanks for your reply. Yes, the bug is still reproducible on version 3.0.6. I just checked
I was using dev-main because neo4j-php-client requires psr/http-message ^1.0, but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match.
In order to check if the bug is reproducible, I added the -W flag to the composer require command, and the bug still exists
I was able to find a solution. I needed to use the container's address in the code, not localhost
.
I just had to change localhost
to neo4j
.
Describe the bug I am unable to connect to a neo4j docker container. I am connecting from a laravel sail container.
My docker-compose file:
The laravel container is on the same network (sail) as the neo4j container. I am also able to connect from my browser (http://localhost:7474/), and I am able to connect to the server using the neo4j username and the password I specified in the .env file.
To Reproduce Steps to reproduce the behavior:
ClientBuilder::create() ->withDriver( 'bolt', 'bolt://neo4j:@localhost:7687',
)
->build();