Data prepper Opensearch_api: return value for _bulk endpoint is wrong

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:

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

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.

@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