Troubleshooting
Common issues and solutions
Solutions to common development issues.
Setup Issues
"Bun not found"
Solution:
curl -fsSL https://bun.sh/install | bash"Convex deployment failed"
Check:
npx convex dev --once- Authenticate Convex CLI- Internet connection stable
- Convex Dashboard accessible
Solution:
cd packages/backend
npx convex dev --reset # Reset local deployment"GitHub OAuth redirect mismatch"
Check OAuth app settings:
- Callback URL:
http://localhost:3000/api/auth/callback/github - Homepage URL:
http://localhost:3000
Solution: Update URLs in GitHub OAuth app settings.
"CORS error on auth"
Check:
CONVEX_SITE_URLmatches frontend URL- Better Auth callback URLs configured correctly
Solution:
# In Convex Dashboard or CLI
npx convex env set CONVEX_SITE_URL http://localhost:3000Development Issues
"Route not found" after adding new route
Cause: Route tree not regenerated.
Solution:
# Restart dev server
# TanStack Router will auto-regenerate routeTree.gen.ts"Convex function not found"
Check:
- Function exported in
convex/[file].ts convex devis running- Types regenerated in
_generated/api.d.ts
Solution:
# Restart Convex dev server
cd packages/backend
npx convex dev"TypeScript errors after schema change"
Cause: Stale generated types.
Solution:
# Stop dev server
# Run setup to regenerate
bun run dev:setup"React Query not updating"
Check:
- Query key matches function signature
- Convex dev deployment URL correct
- Network tab shows WebSocket connection
Solution:
// Force refetch
const { refetch } = useQuery(api.repos.getByFullName, { fullName });
refetch();Workflow Issues
"Workflow stuck in 'queued'"
Check Convex Dashboard:
- Workflows tab → Click workflow
- Check for error messages
Solution:
- Check backend logs for errors
- Verify env vars (GitHub tokens, AI keys)
- Restart workflow (re-analyze repo)
"Workflow failed at step X"
Common causes:
- Step 1-3: GitHub API rate limit or invalid repo
- Step 5: RAG ingestion timeout (too many files)
- Step 6-9: AI API error or validation failure
- Step 10-11: GitHub API rate limit
Solution:
- Check error in Convex Dashboard → Workflows → Failed step
- Fix issue (env var, rate limit, etc.)
- Re-analyze repository (workflow resumes)
"Analysis timeout"
Cause: Repository too large (>10k files).
Solution: Offworld currently best for repos <5k files. Use Chat with manual queries for larger repos.
RAG Issues
"RAG search returns no results"
Check:
- Repository was fully ingested (check
ragtable in Convex) - Namespace correct:
repo:owner/name - Query has relevant keywords
Solution:
// Test RAG directly in Convex Dashboard
// Run action: rag.search
{
"namespace": "repo:facebook/react",
"query": "component rendering",
"limit": 5
}"Embeddings failed"
Cause: Google AI API error or quota exceeded.
Check:
GOOGLE_GENERATIVE_AI_API_KEYis valid- API quota not exceeded (check Google Cloud Console)
Solution: Verify API key and quota, then re-analyze.
AI Issues
"LLM returned invalid JSON"
Cause: AI failed to follow JSON schema.
Check: Convex logs for validation errors.
Solution: Re-analyze repository (workflow retries).
"Difficulty ratings seem wrong"
Cause: AI misunderstood issue scope or incomplete context.
Solution: Use as guidance, not absolute truth. Always verify on GitHub.
"Architecture entities have wrong paths"
Cause: LLM hallucinated paths not in repo.
Check: Convex logs for "Invalid path from LLM" warnings.
Solution: Path validation filters these out. Report issue if many invalid paths.
Frontend Issues
"White screen / blank page"
Check browser console for errors.
Common causes:
- Convex connection failed (wrong URL)
- JavaScript syntax error
- React error boundary triggered
Solution:
# Check Convex URL
echo $VITE_CONVEX_URL
# Rebuild
bun run build"Infinite loading spinner"
Cause: Query never resolves.
Check:
- Network tab - WebSocket connected?
- Convex Dashboard - Function logs show execution?
Solution: Check Convex deployment status and logs.
"Styles not updating"
Cause: Tailwind not rebuilding.
Solution:
# Restart dev server
bun run dev:webAuth Issues
"Sign in redirects to error page"
Check:
- GitHub OAuth app credentials correct
- Callback URL matches
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETin Convex env
Solution: Verify env vars in Convex Dashboard → Settings → Environment Variables.
"User not authenticated after sign-in"
Cause: Session not persisted.
Check:
- Browser allows cookies
- Better Auth session table has entries (Convex Dashboard → Data → sessions)
Solution: Clear browser cookies and retry.
Deployment Issues
"Alchemy deploy failed"
Check:
alchemy.envhas all required vars- Alchemy CLI authenticated:
alchemy login - Domain configured correctly
Solution:
alchemy deploy --verbose # See detailed logs"Cloudflare Workers 502 error"
Cause: Workers failed to start.
Check Cloudflare Dashboard:
- Workers → Logs (if enabled)
- Build succeeded?
Solution: Check Alchemy logs, verify env vars.
"Convex production deploy failed"
Cause: Schema migration issue or env vars missing.
Solution:
# Deploy with verbose output
npx convex deploy --verbosePerformance Issues
"Analysis takes >10 minutes"
Cause: Repository too large or AI API slow.
Solution:
- Use smaller repos (<5k files)
- Check Google AI API status
- Consider rate limiting
"Chat responses slow"
Cause: RAG search + LLM latency.
Solution:
- Normal latency: 3-10 seconds
- If >30 seconds, check network and API status
Database Issues
"Data not showing in Convex Dashboard"
Check:
- Correct deployment selected (dev vs prod)
- Table exists
- Indexes built
Solution: Verify deployment and check schema.
"Duplicate entries in database"
Cause: Re-analysis without clearing old data.
Solution: Workflow handles this automatically with handleReIndex step.
Build Issues
"Turbo build failed"
Check:
- All dependencies installed:
bun install - TypeScript errors:
bun run typecheck
Solution:
# Clean and rebuild
rm -rf node_modules .turbo
bun install
bun run build"Out of memory during build"
Solution:
# Increase Node memory
NODE_OPTIONS=--max_old_space_size=4096 bun run buildStill Stuck?
- Check GitHub Issues - Someone may have reported this
- Open a Discussion - Ask the community
- File an Issue - Report bugs with:
- Steps to reproduce
- Expected vs actual behavior
- Environment (OS, Bun version, etc.)
- Logs/screenshots
Next Steps
- Review Architecture for deeper understanding
- Check Technical Reference for API details