Troubleshooting
Common issues and how to resolve them.
Webhooks Not Firing
Symptoms: Payments succeed but credits aren't granted.
- Check Creem Dashboard → Webhooks for delivery logs
- Verify
CREEM_WEBHOOK_SECRETmatches your Creem settings - Ensure webhook endpoint is publicly accessible
- Check server logs for signature verification errors
Annual Credits Not Auto-Granting
Symptoms: Users on yearly plans don't receive monthly credits.
- Verify cron job is running (check
/api/cron/subscription-grants) - Check
subscriptionCreditScheduletable fornextGrantAttimestamps - Ensure
CRON_SECRETis configured correctly
User Can't Access Admin Panel
- Confirm
user.role = 'admin'in the database - Check
features/admin/components/admin-guard.tsxlogic - Ensure the user's session is valid (try logging out and back in)
Email Not Sending
- Verify
RESEND_API_KEYis set correctly - Check Resend dashboard for delivery logs
- In development, emails may use
onboarding@resend.devas sender - For production, verify your sending domain in Resend
AI API Returning Errors
- Check
VOLCANO_ENGINE_API_KEYis valid - Verify
VOLCANO_ENGINE_API_URLendpoint - Check your Volcano Engine quota/balance
- Review server logs for specific error messages
Database Connection Issues
- Verify
DATABASE_URLconnection string - Ensure
?sslmode=requirefor cloud databases - Check if your IP is allowlisted (if using IP restrictions)
- Try connecting directly:
psql $DATABASE_URL
Build Errors After Upgrade
If you encounter TypeScript errors after upgrading dependencies:
# Clear Next.js cache
rm -rf .next
# Reinstall dependencies
pnpm install
# Try building again
pnpm build