Hi there, I'm using .Net 6.0 and Neo4j client 5.1.3
I've been trying to run my app in Docker. All containers are created, but when I try to send a request, my application returns the error:
Neo4j.Driver.ServiceUnavailableException: Connection with the server breaks due to ExtendedSocketException: Name or service not known Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.
Please, take a look at these configuration files. If someone knows where the issue is, please lemme know because, to tell the truth, I have no idea what is wrong here. I appreciate any help you can provide.
nevermind...I see 'neo4j' refers to the neo4j service on the default docker network. I am not deeply knowledgable on docker, but I got my spring boot application running in a docker container to access neo4j running in/out of a docker container, but running locally, with the following uri. It is equivalent of localhost:7687, but the host's localhost, not the container's.
Neo4j.Driver.ServiceUnavailableException: Connection with the server breaks due to ExtendedSocketException: Name or service not known Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.
I've already found the issues, to tell the truth there were several issues Now it works, maybe it'll be useful for someone who struggle with it as well.
1. We didn't await when connect to the client and in this case we lost main exception
2. Docker compose had wrong configuration
3. When I run docker compose the app starts before the neo4j and of course we couldn't create a client because neo4j wasn't ready