-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Netty4 HTTP does not support "Expect: 100-continue" header #19834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For what it worth, it looks like the |
It seems to be a Netty issue and I have a potential fix. I'm trying to create a test to reproduce this and verify my fix. If successful I'll create a pull request on Netty project. |
I'm not convinced this is a Netty issue, I think the handlers are just ordered incorrectly. I opened #19904. |
@jasontedor I agree - that's also my conclusion after some more digging. I was about to submit the same change as you. |
When using Netty4 HTTP transport type I have the following issue:
Netty4
Starting master using
http.type: netty4
Creating a document with a medium size JSON document using cUrl (sample document is here):
Here is the curl output:
And the elasticsearch logs:
Update: as a workaround for users, forcing the
Expect
header to empty makes the request succeed:curl -v -H "Expect:" -XPOST 'localhost:9200/samples/sample/0' -d '...'
Netty3
It works fine with
http.type: netty3
Creating the document:
Here is the curl output:
The text was updated successfully, but these errors were encountered: