Appearance
Common Issues ​
Purpose: Quick fixes for setup and runtime errors. Audience: Developer, Support Prerequisites: Local env configured; access to Supabase and Stripe dashboards.
For AI-specific issues, see AI Troubleshooting Guide.
Environment problems
- Missing env vars: Ensure
.envcontainsVITE_SUPABASE_URL,VITE_SUPABASE_PUBLISHABLE_KEY,VITE_STRIPE_PUBLISHABLE_KEY. - Wrong project ref: Replace placeholders with your project, never commit secrets.
Supabase
- 401/403 from PostgREST: Check RLS; verify user session exists (see
src/contexts/AuthContext.tsx:45-53). - Functions 404 in dev: Run Supabase local or update proxy. See
vite.config.ts:12-17. - Realtime not firing: Check channel table filters in
useGlobalRealtimeNotifications.ts:31-55, 65-74. - Blur policy:
- Field visible but should be blurred: verify
blurred_fieldsrow forfield_key; checklisting_view_secureprojection; confirm subscription status (active) and expiry. - Admin/Owner still blurred: ensure bypass via
can_view_field; confirm user role/ownership and refresh cache. - Admin toggle no effect: check
admin_toggle_blurred_field(admin only) andupdated_at; invalidate['blurred-fields']cache in UI.
- Field visible but should be blurred: verify
Stripe
- Webhook signature errors: Verify endpoint secret in Edge Function env. See
supabase/functions/stripe-webhook/index.ts:5-12. - Test cards: Use 4242 4242 4242 4242 (any future expiry, any CVC, any zip).
- Payout failing: Confirm Connect account KYC; handled in webhook mapping.
CORS / Proxy
- In dev, calls to
/functions/v1/*should proxy to Supabase local (127.0.0.1:54321). Seevite.config.ts:12-17.
Build/Preview
- White screen after deploy: Ensure SPA fallback to
index.htmlis enabled.
Listing Visibility Issues
- Listing approved but not visible on /explore:
- Check if seller is verified:
SELECT seller_verification_status FROM profiles WHERE id = 'seller-uuid' - If seller not verified, listing only visible to owner/admin
- Solution: Verify seller first, then approve listing
- Check if seller is verified:
- Admin approval not updating verification_status:
- Ensure using updated approval logic in
AdminListings.tsx - Check seller verification status before approval
- Verify RLS policy requires both
status='active'ANDverification_status='approved'
- Ensure using updated approval logic in
- Listing visible to owner but not public:
- Check
verification_statusin listings table - Must be 'approved' or 'verified' for public visibility
- Update manually if needed:
UPDATE listings SET verification_status='approved' WHERE id='listing-uuid'
- Check
Next steps
- See
docs/operations/deployment.mdfor hosting configs. - See
docs/setup/environment.mdfor env examples. - See
docs/features/listings.mdfor complete approval flow documentation.