mailerlite / laravel-elasticsearch

An easy way to use the official Elastic Search client in your Laravel applications.
MIT License
909 stars 187 forks source link

Undefined index: host when check exists index #123

Closed bigcandy95 closed 2 years ago

bigcandy95 commented 3 years ago

I just use package to connect to ES AWS but I got this error( https://tinyurl.com/ydwpddsg). Follow this error may be my config lose something but I don't know

rubalGulati2018 commented 3 years ago

I am facing same error.

cviebrock commented 3 years ago

I see you've blurred out the full value for $request['headers']['Host'][0] ... but the error has to do with PHP not being able to parse that value with parse_url.

Are you able to provide that value, un-blurred? Or even just the beginning of it? Or does that compromise credentials/security on your side? If so, you can email me the value confidentially (colin at viebrock dot ca).

sete391 commented 3 years ago

I send a PR to solve it:

https://github.com/cviebrock/laravel-elasticsearch/pull/124