-
Notifications
You must be signed in to change notification settings - Fork 87
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
A basic error handler #149
Comments
👋 @alallema I can work on this if you want? |
Hi @lewisreay ! |
No problem, thanks, @alallema! Looking forward to the new engine and refactor. |
@alallema, in the GetOrCreateIndex method, you must check the error is |
Create a basic error handler, with these 3 custom errors:
MeiliSearchApiError
MeiliSearchCommunicationError
MeiliSearchTimeoutError
MeiliSearch API has an error handler, and returns this kind of JSON when an error is found:
The complete list of errorCode is available in the documentation
It could be great to let the user access
message
,errorCode
,errorType
anderrorLink
to a better understanding an error.The text was updated successfully, but these errors were encountered: