# Any help to solve these C# NEST (ElasticSearch) errors?

**URL:** <https://discuss.elastic.co/t/any-help-to-solve-these-c-nest-elasticsearch-errors/310772>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [July 27, 2022, 4:16pm UTC](https://discuss.elastic.co/t/any-help-to-solve-these-c-nest-elasticsearch-errors/310772 "2022-07-27T16:16:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadmd](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ahmadmd](https://discuss.elastic.co/u/ahmadmd)\
**Post date:** [July 27, 2022, 4:16pm UTC](https://discuss.elastic.co/t/any-help-to-solve-these-c-nest-elasticsearch-errors/310772/1 "2022-07-27T16:16:33Z")

</div>

Hello,

Recently, I have started to work on C# NEST (ElasticSearch), and having some problems:

1. Error Message: **No route taking 1 parameters {index}/\_doc/{id}**  
when using  
`await ESClient.GetAsync(DocumentPath<TModel>.Id(new Id(model.Id)), x => x.Index(indexName));`  
or  
`await ESClient.DocumentExistsAsync(DocumentPath<TModel>.Id(new Id(model.Id)), x => x.Index(indexName))`

2. Error Message: **Invalid NEST response built from a successful (200) low level call on POST: /{index}/\_bulk**  
when using  
`await ESClient.IndexManyAsync(list, indexName)`  
or  
`await ESClient.BulkAsync(x => x.Index(indexName).IndexMany(list))`  
whereas this works fine  
`await ESClient.IndexDocumentAsync(model)`

With my respect.

---

<div class="post-metadata">

**Author:** ![ahmadmd](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ahmadmd](https://discuss.elastic.co/u/ahmadmd)\
**Post date:** [July 28, 2022, 10:09am UTC](https://discuss.elastic.co/t/any-help-to-solve-these-c-nest-elasticsearch-errors/310772/2 "2022-07-28T10:09:57Z")

</div>

Thanks @StephenCleary , (2) solved: I am using ElasticSearch 8.3.2 and NEST 7.17.4. The workaround solution is enabling the compatibility mode: `var connectionSettings = new ConnectionSettings(new Uri(str)).EnableApiVersioningHeader();`

[ref](https://stackoverflow.com/questions/73141405/any-help-to-solve-these-c-sharp-nest-elasticsearch-errors#comment129178714_73141405)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 25, 2022, 10:10am UTC](https://discuss.elastic.co/t/any-help-to-solve-these-c-nest-elasticsearch-errors/310772/3 "2022-08-25T10:10:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
