meilisearch-rust icon indicating copy to clipboard operation
meilisearch-rust copied to clipboard

ERROR meilisearch_sdk::request] Request succeeded but failed to parse response

Open biot023 opened this issue 3 years ago • 2 comments

Description SDK fails to parse Meilisearch success response

Expected behavior No error

Current behavior ERROR meilisearch_sdk::request] Request succeeded but failed to parse response Error object: ParseError(Error("missing field uid", line: 0, column: 0))

Environment (please complete the following information):

  • OS: [e.g. Debian GNU/Linux]
  • Meilisearch version: v.0.28.0
  • meilisearch-rust version: 0.17.0, 'main' branch, 'bump-meilisearch-v0.28.0' branch

I'm sending a large number of documents via add_documents_in_batches -- the request succeeds but then the response fails to parse. Could you please advise me what I've done wrong or maybe what version of the SDK I should use with our meilisearch version? Thank you, Doug.

biot023 avatar Jul 26 '22 16:07 biot023

Hi @biot023, this package is not yet compatible with v0.28.0 (see here). Downgrading to v0.27.0 should do the trick :)

matthias-wright avatar Jul 26 '22 20:07 matthias-wright

Ah, okay, thank you. For the record, I had issues with 0.27.1, too, but didn't try 0.27.0. I don't recall the exact issues, sorry -- I was very tired by then! :) In the meantime, a lot of work was done on our frontend against 0.28.0 so I've swapped out to the HTTP library for the backend project to preserve that. Thanks again for getting back to me, it's really appreciated.

biot023 avatar Jul 27 '22 08:07 biot023

The last release is now compatible with v0.28.0! The bug should be fixed if you are using meilisearch v.0.28 and this crate v0.18.0

bidoubiwa avatar Aug 31 '22 14:08 bidoubiwa