-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
HttpPostRequestDecoder$ErrorDataDecoderException: java.io.IOException #12318
Comments
@EmiyaXzero Can you elaborate a bit, giving a real example (at least what is the full request content and how you're using Netty)? |
@fredericBregier 当我的请求过大的时候,例如如下的curl请求,就会出现这个错误:Unable to create temporary file, /var/folders/w5/z6vgl5tj4k3cl8pmcsrxrnq40000gn/T/Attr_3530330210300977003,当将请求报文删除一半或者将=号去掉,请求也可以正常进行。 curl --location --request POST 'http://localhost:8080/test/hallCommon_test_smtOrderData' |
@fredericBregier When my request body is too big,such as previous comment,this error will occur:Unable to create temporary file, /var/folders/w5/z6vgl5tj4k3cl8pmcsrxrnq40000gn/T/Attr_3530330210300977003,but When the request message is deleted in half or the = sign is removed ,Requests can also proceed normally. |
@EmiyaXzero Sorry, the logs are not very helpful since I'm not reading Chinese (sorry if I'm incorrect with the language). Can you give us a simple example : body source and exception log trace ? |
@fredericBregier |
@fredericBregier |
@fredericBregier |
@EmiyaXzero Could you put an "exact" POST command with the "real" content (full http), in order to be able to reproduce. With your example, it is a bit too "light" to see really the issue. |
@EmiyaXzero OK, I understand. |
@EmiyaXzero With one small change to your proposal: to prevent issue when diskFilename is null.
|
@fredericBregier |
When using netty-all, I found that io.netty.handler.codec.http.multipart.HttpPostRequestDecoder$ErrorDataDecoderException: java.io.IOException: will appear if the = or & appears in the request message, it can only be solved by choosing the method of local coverage the parseBodyAttributes of the HttpPostStandardRequestDecoder class.
The text was updated successfully, but these errors were encountered: