I’m trying to migrate a rails application from heroku to render. I’ve added the corresponding .env file, linked it and everything seems to be working fine. Anyhow, when I run my application, I get a Mongo::Auth::Unauthorized error, telling me that the given user is not authorized to access the given collection. I’ve used exactly the same mongoDB Atlas connection string as on heroku, when I try to use it locally it works as well, only on render it doesn’t. I don’t have any special settings on the MongoDB Atlas side, so the authentication should work fine.
Anyone an idea on what’s going on here?