elasticsearch-dataformat icon indicating copy to clipboard operation
elasticsearch-dataformat copied to clipboard

Missing 6.x requirement on source query

Open zixu-zhao opened this issue 7 years ago • 3 comments

I am using the [email protected], and I met an error when using the source query that is

{"error":{"root_cause":[{"type":"illegal_state_exception","reason":"source and source_content_type parameters are required"}],"type":"illegal_state_exception","reason":"source and source_content_type parameters are required"},"status":500}

I found that source_content_type parameter must also be specified with the media type of the source following the official document.

Could you update the plugin to support this? Thanks.

zixu-zhao avatar Jan 17 '18 21:01 zixu-zhao

Did you set source_content_type? Test cases work.

marevol avatar Jan 17 '18 22:01 marevol

I tried manually set &source_content_type=application/json and it works. Really appreciate for the reply.

zixu-zhao avatar Jan 17 '18 22:01 zixu-zhao

Hi! I had the same error and it worked for my adding what you suggested: &source_content_type=application/json

carobaldino avatar Mar 19 '20 20:03 carobaldino