Giao diện
Troubleshooting
Frontend
"Unable to load data" trên Forecast page
bash
cd data_import && python3 seed_forecast_configs.pyPort 3000 bận
bash
npm run dev -- --port 3001CORS error
Supabase Dashboard → API → URL configuration → Thêm domain vào CORS origins.
Backend
GitHub Actions không chạy
Kiểm tra secrets: GitHub → Settings → Secrets → Actions. Cần SUPABASE_URL và SUPABASE_SERVICE_ROLE_KEY.
Model training quá lâu
GitHub Actions timeout 6 giờ. Giải pháp: giảm số models hoặc tối ưu data loading.
Database
RLS blocking queries
Kiểm tra RLS policies trong Supabase Dashboard. Hoặc dùng Service Role Key để bypass RLS.