Skip to content

Add errors to updateStatus Class #28

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

Closed
eskombro opened this issue Sep 28, 2020 · 0 comments · Fixed by #29
Closed

Add errors to updateStatus Class #28

eskombro opened this issue Sep 28, 2020 · 0 comments · Fixed by #29
Assignees

Comments

@eskombro
Copy link
Member

eskombro commented Sep 28, 2020

An update status contains, in case of failure, relevant information about the error (message, code and a link to the description of the error in the docs) that should be added to the UpdateStatus for further usage in this SDK and for users!

Example of a failed update:

{
"status":"failed",
"updateId":1,
"type": {
  "name":"DocumentsAddition",
  "number":2
},
"duration":2.55E-5,
"enqueuedAt":"2020-09-28T20:17:27.005486800Z",
"processedAt":"2020-09-28T20:17:27.016900700Z",
"errorCode":"missing_document_id",
"errorType":"invalid_request_error",
"errorLink":"https://docs.meilisearch.com/errors#missing_document_id"
}
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 a pull request may close this issue.

1 participant