able to connect to remote mongodb atlas cluster from my command line but not from docker app

  docker, mongodb, mongodb-atlas

already tried whitelisting ip address for the cluster, but my Go app on my local machine nor on my remote server are able to talk to it


api_1        | 2020/12/28 23:36:35 stdout: connection() : auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AtlasError) bad auth : Authentication failed.

calling mongodb+srv://username:[email protected]/MY_DB, I’m using a user that has full database read/write access

anybody know why this is happening?

Source: Docker Questions