Skip to content

Conversation

@alejandrocq
Copy link
Contributor

@alejandrocq alejandrocq commented Oct 12, 2021

Hi,

I have added the methods to add/update documents in batches (#157) in Index.cs. I have not been able to run the tests correctly because I get the following error in most of them:

Meilisearch.MeilisearchApiError
MeilisearchApiError, Message: The Content-Type "application/json; charset=utf-8" is invalid. Accepted values for the Content-Type header are: "application/json", "application/x-ndjson", "application/csv"

Seems to be an error with the PostJsonAsyncmethod adding the charset parameter, but I suppose that has been working correctly for you.

Let me know if the code is okay and what should I do to fix that error. I will keep investigating if I get some time.

@alejandrocq alejandrocq changed the title Add methods to automatically add/update documents in batches (#157) Add methods to automatically add/update documents in batches Oct 12, 2021
@curquiza
Copy link
Member

Hello @alejandrocq

thanks a lot for your PR
You got an error because the repo was not up to date with the latest version of MeiliSearch. It is fixed now :)

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the warning during the build? :)

Capture d’écran 2021-10-13 à 14 02 53

At least the ones related to your PR.

@curquiza curquiza linked an issue Oct 13, 2021 that may be closed by this pull request
3 tasks
@alejandrocq
Copy link
Contributor Author

Can you remove the warning during the build? :)

Capture d’écran 2021-10-13 à 14 02 53

At least the ones related to your PR.

Sure! I missed those. I will fix them.

@alejandrocq
Copy link
Contributor Author

Ok, I think all it's alright now, at least build and test look good in my machine :)

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @alejandrocq

bors merge

If you are participating in Hacktoberfest, and you would like to receive a small gift from MeiliSearch too, please complete this form.

bors bot added a commit that referenced this pull request Oct 14, 2021
166: Add methods to automatically add/update documents in batches r=curquiza a=alejandrocq

Hi,

I have added the methods to add/update documents in batches (#157) in `Index.cs`. I have not been able to run the tests correctly because I get the following error in most of them:

```
Meilisearch.MeilisearchApiError
MeilisearchApiError, Message: The Content-Type "application/json; charset=utf-8" is invalid. Accepted values for the Content-Type header are: "application/json", "application/x-ndjson", "application/csv"
```

Seems to be an error with the `PostJsonAsync`method adding the charset parameter, but I suppose that has been working correctly for you.

Let me know if the code is okay and what should I do to fix that error. I will keep investigating if I get some time.

Co-authored-by: Alejandro Castilla Quesada <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 14, 2021

Build failed:

@curquiza
Copy link
Member

bors try

bors bot added a commit that referenced this pull request Oct 14, 2021
@bors
Copy link
Contributor

bors bot commented Oct 14, 2021

try

Build succeeded:

@curquiza
Copy link
Member

oops looks like there are some flaky, I will open an issue (it's because of the dumps, so not related to your PR)
bors merge

@bors
Copy link
Contributor

bors bot commented Oct 14, 2021

Build succeeded:

@bors bors bot merged commit 8d5b14c into meilisearch:main Oct 14, 2021
@curquiza curquiza added the enhancement New feature or request label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add methods to automatically add/update documents in batches

2 participants