# Data prepper Opensearch\_api: return value for \_bulk endpoint is wrong

**URL:** <https://forum.opensearch.org/t/data-prepper-opensearch-api-return-value-for-bulk-endpoint-is-wrong/28068>\
**Category:** Data Prepper\
**Tags:** discuss, troubleshoot\
**Created:** [May 15, 2026, 9:58am UTC](https://forum.opensearch.org/t/data-prepper-opensearch-api-return-value-for-bulk-endpoint-is-wrong/28068 "2026-05-15T09:58:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpsmails](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@dpsmails](https://forum.opensearch.org/u/dpsmails)\
**Post date:** [May 15, 2026, 9:58am UTC](https://forum.opensearch.org/t/data-prepper-opensearch-api-return-value-for-bulk-endpoint-is-wrong/28068/1 "2026-05-15T09:58:55Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): Latest

**Describe the issue** :

This is for opensearch\_api source in data prepper.

The \_bulk endpoint returned an empty HTTP 200 with no body.

Clients using RestHighLevelClient (Flink, Logstash, opensearch-py) expect a JSON response with {took, errors, items [] } and fail with ‘Unable to parse response body’ / NullPointerException.

**Configuration** :

**Relevant Logs or Screenshots** :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/c/c4fe91bd131d5a8e2ced2ff67eb7f01c81f1bf89.jpeg)

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [May 15, 2026, 9:44pm UTC](https://forum.opensearch.org/t/data-prepper-opensearch-api-return-value-for-bulk-endpoint-is-wrong/28068/2 "2026-05-15T21:44:58Z")

</div>

@dpsmails According to the Data Prepper GitHub, the processBulkRequest returns only HTTPS 200 OK.

> <https://github.com/opensearch-project/data-prepper/blob/513dcfb06f7469ee899daad6fc1ebeb6dc3b2d0a/data-prepper-plugins/opensearch-api-source/src/main/java/org/opensearch/dataprepper/plugins/source/opensearchapi/OpenSearchAPIService.java#L104>

I couldn’t find any GitHub issues reporting this problem. I would suggest reporting it in the Data Prepper GitHub repo. If you do so, please share the link here.

---

<div class="post-metadata">

**Author:** ![dpsmails](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@dpsmails](https://forum.opensearch.org/u/dpsmails)\
**Post date:** [May 21, 2026, 6:15am UTC](https://forum.opensearch.org/t/data-prepper-opensearch-api-return-value-for-bulk-endpoint-is-wrong/28068/3 "2026-05-21T06:15:09Z")

</div>

@pablo here it is: [[BUG] opensearch\_api source: \_bulk endpoint returns empty HTTP 200 with no JSON body · Issue #6877 · opensearch-project/data-prepper · GitHub](https://github.com/opensearch-project/data-prepper/issues/6877)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [July 20, 2026, 6:16am UTC](https://forum.opensearch.org/t/data-prepper-opensearch-api-return-value-for-bulk-endpoint-is-wrong/28068/4 "2026-07-20T06:16:02Z")

</div>

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