Skip to content

Update error handling to capture all 4xx responses #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

fethij
Copy link
Contributor

@fethij fethij commented Jun 22, 2025

interceptor was only capturing error codes when the HTTP status was exactly 400, but RLS violations from Supabase were coming with a different HTTP status code. For example fatal error INSUFFICIENT PRIVILEGE 42501 was 403.

closes #204

Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good to me. I'll add a changelog entry in a follow-up PR.

@stevensJourney stevensJourney merged commit 6f0840b into powersync-ja:main Jun 23, 2025
5 of 6 checks passed
@simolus3 simolus3 mentioned this pull request Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

supabase fatal errors
2 participants