Troubleshoot
Unable to Sign In with Google in Local Compass Instance
Missing User id
When you encounter a missing user id, it is because Compass is not connected to your MongoDB database and there are no records of any user stored. The reason is because you are not connected to the MongoDB database.
Sometimes MongoDB is successfully connected when you run yarn dev:backend but you still get a missing user id error. This could be because:
- The MongoDB connection string in your
.env.localfile is incorrect - Your IP address is not whitelisted in MongoDB Atlas
- The MongoDB connection string format is invalid or incomplete
Mismatch User Id
When you encounter a mismatch user id, the user in your mongo collection is not the one being captured. This could be because you have duplicate users in your database. In order to fix this you need to clear your user data using the CLI delete command:
yarn cli delete -u <email>
See the CLI guide for more details on deleting user data.
Invalid domain name
When encountering an invalid domain name error, this is because the URL you provided in the SUPERTOKENS_.. value in your .env file is incorrect. This could be caused by prematurely finishing the setup of your Supertokens instance.
To fix this:
- Make sure to completely set up your Supertokens instance
- Copy the exact connection URI and API key from your Supertokens dashboard
- Verify the connection URI format matches what Supertokens provides (should include the protocol, domain, and port if applicable)
- Ensure there are no extra spaces or characters in the environment variable values