"socket hang up"

Ok I found the fix for this and its a bit odd but who cares.
I Put the following lines into my elasticsearch.yml file:
> http.cors.enabled: true
> http.cors.allow-origin: "*"
> http.max_header_size: 16kb