Open johncade opened 7 years ago
The error said, your user account has no right to create index in db.
@icebob thanks for getting back to me so fast. One problem is, despite setting my ENV vars, MONGO_URI
, MONGO_USERNAME
and MONGO_PASSWORD
, the values do not proliferate when running npm run dev
. I went in and hard coded them in order to get the above error, but I think it is still not using the actual user I hard coded in. That user account is an admin, so there shouldnt be any problem creating an index. If I am running dev and want to connect to a cloud db, shouldnt I just be able to set the proper ENV vars and go from there? I am missing something.
On the topic of your ENV variables not working properly make sure:
They are in the .env and spelled properly
You are using something like dotenv
When connecting to MongoDB Atlas, I consistently get this error. This doesn't happen on a local MongoDB server. Any idea what could be going wrong?