"Command find requires Authentication" despite having correct authentication details in mongoURI

The roles are read and dbOwner.
Both roles should be able to use find function.