# Help me: Unable to parse response body for Bulk Request posted

**URL:** <https://discuss.elastic.co/t/help-me-unable-to-parse-response-body-for-bulk-request-posted/342793>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [September 12, 2023, 8:59am UTC](https://discuss.elastic.co/t/help-me-unable-to-parse-response-body-for-bulk-request-posted/342793 "2023-09-12T08:59:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adibas](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@adibas](https://discuss.elastic.co/u/adibas)\
**Post date:** [September 12, 2023, 8:59am UTC](https://discuss.elastic.co/t/help-me-unable-to-parse-response-body-for-bulk-request-posted/342793/1 "2023-09-12T08:59:44Z")

</div>

Error Details:

**java.io.IOException: Unable to parse response body for Response{requestLine=POST /\_bulk?timeout=1m HTTP/1.1, [host=eu-west-1.es.amazonaws.com](http://host=eu-west-1.es.amazonaws.com), response=HTTP/1.1 200 OK}**

Tried to investigate and I see the object send is **org.elasticsearch.action.bulk.Response** rather than the expected is **org.elasticsearch.action.bulk.BulkResponse**

Looked into the documentations as well but no luck.  
Some important information on dependency and es method we are trying to execute from our Spring Boot Application:

java 11  
spring-boot-starter-parent 2.5.6  
spring-data-elasticsearch 4.2.6  
elasticsearch-rest-high-level-client 7.12.1  
org.elasticsearch 7.12.1

**code: BulkResponse bulkResponse = elasticsearchClient.bulk(bulkRequest,RequestOptions.DEFAULT);**

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 12, 2023, 1:09pm UTC](https://discuss.elastic.co/t/help-me-unable-to-parse-response-body-for-bulk-request-posted/342793/2 "2023-09-12T13:09:33Z")

</div>

Welcome!

According to the URL, you are not using Elasticsearch 7.12.1 but another distribution which is not supported here. You must ask your vendor about this.

BTW did you look at [Cloud by Elastic](https://www.elastic.co/cloud), also available if needed from [AWS Marketplace](https://aws.amazon.com/marketplace/pp/Elasticsearch-Inc-Elasticsearch-Service-on-Elastic/B01N6YCISK), [Azure Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure?tab=Overview) and [Google Cloud Marketplace](https://console.cloud.google.com/marketplace/details/endpoints/elasticsearch-service.gcpmarketplace.elastic.co)?

Cloud by elastic is one way to have access to **all features** , all managed by us. Think about what is there yet like Vector Search, Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named [Observability](https://www.elastic.co/observability), [Security](https://www.elastic.co/security) and what is coming next 🙂 ...

---

<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:** [October 10, 2023, 1:10pm UTC](https://discuss.elastic.co/t/help-me-unable-to-parse-response-body-for-bulk-request-posted/342793/3 "2023-10-10T13:10:02Z")

</div>

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