Replies: 1 comment 1 reply
-
Both questions sound like bugs to me. Let me create an issue for them. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Armeria folks,
I'm using annotated doc service
@Post("/_bulk")
that can also parse NDJSON strings. This is the only dataformat that Elasticsearch/Opensearch accepts ( https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html )The service works as expected, however I am running into an issue with the DocService
I am passing this as my HTTP Headers within the doc service
In the request body if I input NDJSON data, for example
The doc serice parser is complaining since it's expecting data to be JSON
So my first questionn is there a way for me to disable the JSON parsing of the request body?
My second quesion is the DocService dseems to overwrite the content-type header. For example if I change my request body to be a valid JSON
{ "index" : { "_index" : "test", "_id" : "1" } }
and then "Copy as a curl command" I see this
If I change the HTTP Header to be
then I see the request being formed as
Beta Was this translation helpful? Give feedback.
All reactions