After submitting a request, you see "no requests yet" instead of your request.
Check:
- Open browser console (F12)
- Look for errors when submitting
- Check if you see: "Claude API key not configured" or API errors
Fix:
- Make sure
REACT_APP_CLAUDE_API_KEYis in your.envfile - Restart dev server after adding:
npm start - Check API key is valid
If Claude API fails, the request creation will fail too!
Symptom: Error about "index not found" in console
Fix:
- Go to Firebase Console → Firestore Database
- Click on "Indexes" tab
- If you see a link to create an index, click it
- Or use the error message link to create the index
Quick Fix: The code now has a fallback that works without indexes.
Check:
- Go to Firebase Console → Firestore Database →
requestscollection - Do you see your request there?
- If yes, it's a query issue
- If no, request creation failed
Check:
- Are you logged in?
- Check browser console for auth errors
- Try logging out and back in
Open DevTools (F12) → Console tab, then:
- Submit a request
- Look for errors:
- Red error messages
- Claude API errors
- Firestore errors
- Network errors
- Open DevTools → Network tab
- Submit a request
- Look for:
- Claude API call (to
api.anthropic.com) - Firestore write operation
- Any failed requests (red)
- Claude API call (to
- Go to Firebase Console
- Firestore Database → Data tab
- Check
requestscollection - Is your request there?
Is Claude API working?
The code will fallback if Claude API fails, but let's verify:
- Check
.envfile hasREACT_APP_CLAUDE_API_KEY - Restart dev server
- Check browser console for Claude API errors
- Get API key from Anthropic Console
- Add to
.env:REACT_APP_CLAUDE_API_KEY=sk-ant-your-key-here - Restart dev server:
npm start
If you see index error:
- Click the link in the error message
- Or go to Firestore → Indexes
- Create the composite index
- Wait for it to build (can take a few minutes)
Add temporary logging to see what's happening:
// In RequestForm.js, add console.logs:
console.log('Submitting request...');
console.log('Processed request:', processedRequest);
console.log('Request data:', requestData);If Claude API isn't working, the code should still create requests with fallback values. But let's verify:
- Check if request is created in Firestore
- If not, check browser console for the exact error
- The error message will tell you what's wrong
Fix: Add REACT_APP_CLAUDE_API_KEY to .env and restart
Fix: Update Firestore security rules (see FIRESTORE_RULES.md)
Fix: Create the index or use the fallback query (already added)
Fix: Check internet connection, Claude API status
- Go to Firebase Console
- Firestore Database → Data
- Click
requestscollection - You should see your request document
If it's there but not showing in app:
- It's a query/display issue
- Check RequestList.js query
If it's not there:
- Request creation failed
- Check browser console for errors
- ✅ Check browser console for errors
- ✅ Verify Claude API key is set
- ✅ Check Firestore for the request
- ✅ Check network tab for failed requests
- ✅ Verify authentication is working
The most common issue is Claude API not configured or failing!