# API Connection Error - Fix Guide ## Issue After login, you see: **"Network error. Please check your connection."** This means the frontend cannot reach the backend API. --- ## 🔍 Diagnosis ### Current Configuration - **Frontend URL:** http://192.168.11.130 - **API URL (configured):** http://192.168.11.150:3000 - **API Status:** ❌ Not reachable --- ## ✅ Solutions ### Option 1: Start the Backend API (Recommended) The API needs to be running on container 10150 (192.168.11.150:3000). **Check if API container is running:** ```bash pct status 10150 ``` **Start the API service:** ```bash # On Proxmox host pct exec 10150 -- systemctl start dbis-api pct exec 10150 -- systemctl status dbis-api ``` **Or start manually:** ```bash pct exec 10150 -- bash -c "cd /opt/dbis-core && npm start" ``` ### Option 2: Use Mock Data (Temporary) I've updated the frontend to use mock data when the API is unavailable. The app will now: 1. ✅ Try to connect to the API 2. ✅ If connection fails, automatically use mock data 3. ✅ Show a warning in console (not visible to users) 4. ✅ Display the dashboard with sample data **This allows you to:** - Test the frontend UI - Navigate all pages - See how the interface works - Develop without a backend ### Option 3: Change API URL If your API is running on a different address: **Update the .env file on the frontend container:** ```bash pct exec 10130 -- bash -c "cat > /opt/dbis-core/frontend/.env <