Skip to content

Troubleshooting

Frontend

"Unable to load data" trên Forecast page

bash
cd data_import && python3 seed_forecast_configs.py

Port 3000 bận

bash
npm run dev -- --port 3001

CORS 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_URLSUPABASE_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.

Tài liệu liên quan

BoxMe Forecast — Tài liệu kỹ thuật nội bộ