-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Solutions to every error encountered during MindBridge development.
Cause: Gemini API call failed. Fix:
- Open browser Console (F12)
- Look for the red error
- Most common causes below:
Cause: Daily quota exhausted on your Gemini API key. Fix:
- Wait 24 hours (quota resets at midnight Pacific time)
- OR create a new API key at https://aistudio.google.com/app/apikey
- OR switch model in
src/gemini.js:
model: "gemini-1.5-flash" // different quota from 2.0-flashCause: Wrong model name in src/gemini.js.
Fix: Use one of these valid model names:
model: "gemini-2.5-flash" // recommended
model: "gemini-2.0-flash" // stable
model: "gemini-1.5-flash" // backupCause: Google flagged your account after keys were exposed publicly. Fix:
- Wait 24 hours and try again
- OR use a different Gmail account
- OR create key via https://console.cloud.google.com → APIs & Services → Credentials
Cause: Firestore permission error on profile save.
Fix: Wrap saveUserProfile in try/catch in App.jsx — see Getting Started guide.
Cause: Firestore security rules not deployed. Fix:
firebase deploy --only firestore:rulesCause: localhost not in Firebase authorized domains.
Fix:
- Firebase Console → Authentication → Settings → Authorized domains
- Add
localhost
Cause: Ad blocker blocking Firebase requests.
Fix: Disable your ad blocker for localhost.
Cause: Node.js not installed or not in PATH. Fix:
- Download from https://nodejs.org
- Install with all defaults
- Restart PowerShell
Cause: Packages not installed. Fix:
npm installCause: .env file not saved or server not restarted.
Fix:
- Make sure file is named exactly
.env(not.env.txt) - Stop server: Ctrl+C
- Restart:
npm run dev
Cause: Wrong remote URL. Fix:
git remote set-url origin https://github.com/prats010/mindbridge-v2.git
git push -u origin mainCause: GitHub has changes you don't have locally. Fix:
git pull origin main --rebase
git pushCause: Workflow runs build without installing packages first.
Fix: In .github/workflows/firebase-hosting-merge.yml:
- run: npm ci && npm run buildCause: GitHub Secrets missing — build succeeded but with empty env variables. Fix: Add all 7 secrets in repo → Settings → Secrets and variables → Actions.
git commit --allow-empty -m "Refresh deployment"
git push