Nicholas Pini
07/11/2025, 3:34 PMprefectUiApiUrl
YAML value to the external link (lets say, https://my-prefect-server.com/api). When I open the link through my browser, all I see is a completely white page. Why is that?Marvin
07/11/2025, 3:34 PMMarvin
07/11/2025, 3:35 PMprefectUiApiUrl: <https://my-prefect-server.com/api>
- Make sure you're accessing the base URL (<https://my-prefect-server.com>
) in your browser, not the /api
endpoint
- The /api
path is for the API server, not the UI itself
2. Verify Network Configuration:
- Ensure your Kubernetes ingress is properly configured to handle both the UI and API paths
- The UI needs to access the API endpoint, so both paths must be properly routed
- Check if your browser's developer tools (F12) show any network errors or failed requests
3. Pod Health Check:
Run these commands to verify your deployment status:
bash
kubectl get pods -n <your-namespace>
kubectl describe pod <prefect-server-pod-name> -n <your-namespace>
kubectl logs <prefect-server-pod-name> -n <your-namespace>
4. Browser Troubleshooting:
- Try a hard refresh (Ctrl+F5 or Cmd+Shift+R)
- Clear your browser cache
- Try a different browser
- Check the browser's developer console (F12) for JavaScript errors
5. CORS Configuration:
- Ensure your ingress or API gateway is properly configured to handle CORS
- The UI needs to make API calls, so CORS headers must be properly set
6. SSL/TLS:
- If you're using HTTPS, ensure your certificates are valid and properly configured
- Check if there are any certificate errors in your browser's security panel
If these steps don't resolve the issue, you can try:
1. Port-forwarding directly to the service to rule out ingress issues:
bash
kubectl port-forward svc/prefect-server 4200:4200 -n <your-namespace>
Then access <http://localhost:4200>
2. Check the actual response from the API:
bash
curl -v <https://my-prefect-server.com/api/health>
This should return a successful response if the API is working correctly.
Would you like me to help you investigate any of these specific areas further?