awesome-reactivesearch / reactivesearch-proxy-server

A middleware to demonstrate how to secure your ES cluster with reactivesearch
MIT License
11 stars 9 forks source link

MSearch queries not working #4

Closed rgb-panda closed 1 year ago

rgb-panda commented 1 year ago

Hello,

Has this proxy been tested for the latest msearch requests in the current version of reactivesearch?

I'm getting

the msearch request must be terminated by a newline [\n]

rgb-panda commented 1 year ago

I was using firebase functions and not a direct express server, so had to make the below tweaks to make it work

proxyReq.setHeader( 'Content-Type', 'application/x-ndjson'

and in the ReactiveBase component

headers={{ 'Content-Type': 'text/plain' }}