[SOLVED] com.eventstore.dbclient.ConnectionShutdownException: The connection is closed

Problem solved by adding tls=false
“esdb://127.0.0.1:2113?tls=false”

Hey i have problem with very sample code from doc
I tried to search solution in internet but nothing works. I’m using standard docker-compose which is at bottom

EventStoreDBClientSettings settings = EventStoreDBConnectionString.parseOrThrow(
        "esdb://127.0.0.1:2113" // i also tried 1113, but not different result
);
EventStoreDBClient client = EventStoreDBClient.create(settings);
EventStoreDBProjectionManagementClient client2 = EventStoreDBProjectionManagementClient.create(settings);
client2.create("name", "s").get(); // lane 21 with Exception

Error:

Exception in thread “main” java.util.concurrent.ExecutionException: com.eventstore.dbclient.ConnectionShutdownException: The connection is closed
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
at pl.datastructures.learning.Main.main(Main.java:21)
Caused by: com.eventstore.dbclient.ConnectionShutdownException: The connection is closed
at com.eventstore.dbclient.GrpcClient.handleMsg(GrpcClient.java:230)
at com.eventstore.dbclient.GrpcClient.messageLoop(GrpcClient.java:296)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Process finished with exit code 1

version: “3.4”

services:
  eventstore.db:
    image: eventstore/eventstore:20.10.2-buster-slim
    environment:
      - EVENTSTORE_CLUSTER_SIZE=1
      - EVENTSTORE_RUN_PROJECTIONS=All
      - EVENTSTORE_START_STANDARD_PROJECTIONS=true
      - EVENTSTORE_EXT_TCP_PORT=1113
      - EVENTSTORE_HTTP_PORT=2113
      - EVENTSTORE_INSECURE=true
      - EVENTSTORE_ENABLE_EXTERNAL_TCP=true
      - EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
    ports:
      - "1113:1113"
      - "2113:2113"
    volumes:
      - type: volume
        source: eventstore-volume-data
        target: /var/lib/eventstore
      - type: volume
        source: eventstore-volume-logs
        target: /var/log/eventstore

volumes:
  eventstore-volume-data:
  eventstore-volume-logs: