-
Notifications
You must be signed in to change notification settings - Fork 49
Improve error handling, rescue EPIPE and Net::* errors #307
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
Conversation
- Errno::EPIPE => MeiliSearch::CommunicationError - Net::ReadTimeout, Net::OpenTimeout => MeiliSearch::TimeoutError
|
The overall gain with this PR is just one "no more Errno::EPIPE" error, but they intrinsically are still happening. If
Unfortunately, there is no way to have a specific error message because the broken pipe could happen for any other POST request, which means, the rescue Errno::EPIPE handler will match all the situations without knowing them. The only way I see now, to fix it is replacing the FYI: @curquiza |
|
Thanks for the explanations Bruno, and the investigation!
I totally agree 😄 |
curquiza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤘
|
bors merge |
323: Update version for the next release (v0.18.3) r=curquiza a=brunoocasali This version makes this package compatible with Meilisearch v0.27.0 🎉 Check out the changelog of [Meilisearch v0.27.0](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0) for more information on the changes. ## 🚀 Enhancements * Ensure nested field support (#318) `@brunoocasali` * Add `highlightPreTag`, `highlightPostTag`, `cropMarker`, parameters in the search request (#319) `@brunoocasali` * Create a helper module to reduce test duplication (#316) `@brunoocasali` ## 🐛 Bug Fixes * Improve error handling, rescue EPIPE and Net::* errors (#307) `@brunoocasali` Thanks again to `@brunoocasali!` 🎉 Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
Pull Request
This PR fixes a bad DX when comes to errors, if a user tries to upload a big dataset, they will face some errors, one of them was related to the
Errno::EPIPEerror, which is really hard to figure out.The idea of this PR is to handle the errors and improve the user experience.
What does this PR do?
Fixes #305
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!