Skip to Content
ReferenceTroubleshooting

Troubleshooting

Common Issues

IssueCauseFix
401 Unauthorized on every requestToken expired or misconfiguredCheck WEB3AUTH_CLIENT_ID matches FE + BE
Backend uses in-memory storageDATABASE_URL not setSet DATABASE_URL in backend .env
CORS errorsFRONTEND_URL mismatchSet exact frontend origin (no trailing slash)
Faucet drip failsMainnet mode or no faucet keySet NETWORK_MODE=testnet + FAUCET_PRIVATE_KEY
1Shot empty capabilitiesUsing testnet1Shot is mainnet-only; use via: "direct"
Smart account not workingNo bundler URLSet NEXT_PUBLIC_BUNDLER_* for target chain
Venice verification no-opNo API keySet VENICE_API_KEY in backend env

Diagnostic Commands

# Check backend health curl http://localhost:8000/health # Diagnose Web3Auth token issues node --import tsx scripts/diagnose-token.mjs # Run tests (no DB needed) cd backend && node --import tsx --test tests/*.test.ts # Type-check both projects cd frontend && npx tsc --noEmit cd backend && npm run typecheck
Last updated on