Can't add transmission as a Sonarr download client

OK, so I tried adding a user and pass in the docker-compose.yml file

    environment:
        - PUID=1000
        - PGID=1000
        - TZ=America/Argentina/Buenos_Aires
        # - TRANSMISSION_WEB_HOME=/combustion-release/ #optional
        - USER=transmission #optional
        - PASS=transmission #optional
        - WHITELIST=127.0.0.1,192.168.10.* #optional
        - HOST_WHITELIST=sonarr,radarr #optional

and now I have to input the user and pass to acces the web frontend to transmission but I’m still getting the authentication error in sonarr even though I’m entering the correct username and password. Could it be something wrong in the HOST_WHITELIST variable?