5.0.0-alpha5: XPUT Mapping response: "curl: (52) Empty reply from server"


(Paul Ainslie) #1

Why would I get an "Empty reply from server" when trying to create a mapping? Turned logging up to DEBUG and I'm not seeing anything. All the other curl commands work fine including creating a new index.

We upgraded last week to ES 5.0.0-alpha5. This exact same mapping worked fine in ES 2.4.1.

   ~$ curl -XPUT localhost:9200/mediaserver_v2/_mapping -d @mediaserver_v2_mapping.json -vvv
    * Hostname was NOT found in DNS cache
    *   Trying 127.0.0.1...
    * Connected to localhost (127.0.0.1) port 9200 (#0)
    > PUT /mediaserver_v2/_mapping HTTP/1.1
    > User-Agent: curl/7.38.0
    > Host: localhost:9200
    > Accept: */*
    > Content-Length: 2216
    > Content-Type: application/x-www-form-urlencoded
    > Expect: 100-continue
    > 
    * Empty reply from server
    * Connection #0 to host localhost left intact
    curl: (52) Empty reply from server

(Shane Connelly) #2

Alpha5 had a bug with netty4 + the Expect: 100-continue header. See here for details. You have 2 options:

  1. Upgrade to beta1 or later, where the bug was fixed
  2. Switch to netty3 by running Elasticsearch with bin/elasticsearch --E http.type=netty3

(Paul Ainslie) #3

Thanks - upgrading to ES 5.0.0 did the trick!


(system) #4