Skip to content

Use new error response format to parse errors #309

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 3 commits into from
Jul 22, 2025
Merged

Conversation

simolus3
Copy link
Contributor

We currently try to extract $.errors.details as a description from error responses, a field that is optional and doesn't include much of the error. These limited error messages make it harder than necessary to debug service issues from the client.

This PR changes that logic to include more fields, like the PowerSync error code and description.

@simolus3 simolus3 requested a review from stevensJourney July 22, 2025 08:13
@simolus3 simolus3 merged commit 3a32531 into main Jul 22, 2025
5 checks passed
@simolus3 simolus3 deleted the more-error-fixes branch July 22, 2025 08:59
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.

3 participants