Skip to content

Custom error that includes the response on JSON parse error #44

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 8 commits into from
Apr 23, 2025

Conversation

sunny
Copy link
Contributor

@sunny sunny commented Apr 22, 2025

Change Summary

I’ve been experiencing some errors due to some malformed JSON responses on import.

In order to distinguish which elements were imported correctly and which weren’t it helps to catch the error and return a JSON response for every element.

PR Checklist

@tharropoulos
Copy link
Contributor

Looks like there's some linting errors

@sunny
Copy link
Contributor Author

sunny commented Apr 22, 2025

Had to bump rubocop-rspec, but it’s good now 👍🏻

@tharropoulos
Copy link
Contributor

@jasonbosco lgtm

@jasonbosco jasonbosco merged commit 2cf966b into typesense:master Apr 23, 2025
3 checks passed
@jasonbosco
Copy link
Member

This is now available in v3.1.0

@sunny
Copy link
Contributor Author

sunny commented Apr 24, 2025

Thanks Jason & Fanis! ✨

@sunny sunny deleted the response-malformed-json-error branch April 24, 2025 12:50
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