You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When talking to AWS Elasticsearch: Error occurred while preparing to ship data: { [Error: Content-Type header [application/x-ldjson] is not supported]. This is with elasticsearch.js 11.0.1.
application/json works fine. It's just a question of how to get lambda-stash to do it. I tried changing shipElasticsearch.js to set the headers, but it didn't work:
When talking to AWS Elasticsearch:
Error occurred while preparing to ship data: { [Error: Content-Type header [application/x-ldjson] is not supported]
. This is with elasticsearch.js 11.0.1.application/json
works fine. It's just a question of how to get lambda-stash to do it. I tried changing shipElasticsearch.js to set the headers, but it didn't work:For now, I've modified the bottom of node_modules/elasticsearch/src/lib/serializers/json.js to use
application/json
.The text was updated successfully, but these errors were encountered: