meilisearch: error when uploading: "message": "internal: number is not a valid finite number."
I have a script that runs a database query, receives the response at json, then uploads that json to meilisearch (v0.28.1, running bare-metal on debian). The first few times I ran the script there were no errors, then I suddenly got this message from the /tasks
endpoint:
{
"uid": ...,
"indexUid": ...
"status": "failed",
"type": "documentAdditionOrUpdate",
"details": {
"receivedDocuments": 5000,
"indexedDocuments": 0
},
"error": {
"message": "internal: number is not a valid finite number.",
"code": "internal",
"type": "internal",
"link": "https://docs.meilisearch.com/errors#internal"
},
...
}
Any ideas what this could be? Thank you!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (5 by maintainers)
Hello @curquiza, I found that MeiliSearch v0.30.0 solved the issue! I made sure whether the error was reproduced in my repository settings on amd64/ubuntu22.04 8GB RAM instance, and indexes were successfully created! (Of course, there are few cases where making very long sentences filterable.)
Thanks, MeiliSearch Team!
Thanks @Wattyyy! I close the issue!
@curquiza Thanks for the information. I will try the new version on my repository.
Also @Wattyyy we have just released v0.30.0, if you have the time, could you please check if your issue is fixed by using v0.30.0? 🙏
Thank you so much @Wattyyy we will investigate this soon!
Hello @Wattyyy, can you share you dataset and the steps to reproduce the issue?
@murilohns and can you share your whole dataset?
Hello @murilohns
Thank you for the detailed explanation. Unfortunately, I was not able to reproduce the error. Could you please provide a sample document from your dataset or the contents of your description field?
Thanks.
Updated: Maybe it’s a problem with special characters 🤔 I have indexed the
description
field removing the special characterslet description = fullDescription.replace(/[^\w\s\d]/gm, "")
and it worked.When I tried it keeping the special characters, the error occurs
let description = fullDescription.replace(/[^A-zÀ-ú\s\d]/gm, "")