Error to connect with external POSTGRES database

I am receiving the following error, when i try to conncect with a external POSTGRES database :

PostgreSQL error: ERROR: prepared statement “{id}” does not exist

docker-compose.yml

services:
   orthanc:
    image: orthancteam/orthanc
    ports: ["8202:8042"]
    environment:
      VERBOSE_ENABLED: "true"
      VERBOSE_STARTUP: "true"
    
    secrets:
      - orthanc.secret.json

secrets:
  orthanc.secret.json:
    file: orthanc.secret.json

orthanc.secret.json config :

{
  "Name": "orthanc",
  "RemoteAccessAllowed": true,
  "AuthenticationEnabled": true,
  "RegisteredUsers": {
    "demo": "demo"
  },
   "PostgreSQL": {
    "EnableIndex": true,
    "EnableStorage": false,
    "Port": 5432,
    "Host": "my_url",
    "Database": "my_db",
    "Username": "my_user",
    "Password": "my_password",
    "EnableSsl": true
  }
}

someone can help me with this. Thanks !