You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve error handling for missing ControlPlane edge function (#438)
# Improve error handling for missing ControlPlane edge function
This PR enhances error handling in the CLI when the ControlPlane edge function is not found, distinguishing between two different 404 scenarios:
1. When the flow exists but isn't found in the ControlPlane (our existing error)
2. When the ControlPlane edge function itself doesn't exist (new error case)
The changes:
- Add specific error message when the Supabase gateway returns a 404 for the missing edge function
- Provide clear instructions to run `npx pgflow install` when the edge function is missing
- Handle non-JSON responses (like HTML error pages) that some gateways return
- Add tests for these new error handling cases
Additionally, the PR improves the Supabase startup script to:
- Better detect running services by using the project name from project.json
- Add configurable retry parameters for E2E tests when waiting for the server to be ready
0 commit comments