-
Notifications
You must be signed in to change notification settings - Fork 198
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
HTTP 1.1 multipart/form-data is not supported (chunks) #372
Comments
@antonini can you please suggest a test, which will reproduce this problem? |
@yegor256 Need to be a unit test? Or some steps to reproduce inside a real project, such as Netbout? |
@antonini just a unit test |
@yegor256 I couldn't create a unit test that simulate that action, but what I saw is that we don't support chunked-body upload. I was reading (RFC7230)[https://tools.ietf.org/html/rfc7230] the (Chunked Transfer Coding Section)[https://tools.ietf.org/html/rfc7230#page-36] and I didn't found that implemented on takes. Netbout use takes, and I was able to receive an error when I tried to upload files larger then 5mb. Google Chrome split the file in chunks (trailers) and netbout return an error. |
@antonini now it's clear, thanks! |
@antonini I am aware of the task, give me some time to find a developer... |
@antonini since the ticket has no milestone I set it to 1.0 |
@antonini thank you for the ticket reported, I topped your account for 15 mins, transaction |
@mstzn36 this task is for you, keep these principles in mind, and don't hesitate to ask any technical questions 30 mins is the budget of the task. This is exactly how much will be paid when the problem is solved (no matter how much time you will actually spend). See this for more information |
@antonini I couldn't reproduce this bug in my local.I tried to run netbout in debug then upload 6mb file but server didn't throw any error. Can you help please ? |
@mstzn36 Server doesn't throw errors. To get that error I had to debug it. Have you tried to download the file after uploading it? |
@antonini Yes I did. But size of the downloaded file was 0 bytes. Also i put a breakpoint on RqLive class,it didn't stop :( What is type of file which you try to upload ? |
@mstzn36 So, you got the point. The downloaded file is "0" because you didn't uploaded it. Netbout hide exception that I said on issue description. What I suggested is to debug the upload process. I don't remember right now the class that throws it. What I saw is that because you are trying to upload a large file, the browser opens a lot of connections pushing small chunks. When I debugged HTTP that was been sent to server I saw that the last line of the first connection refers to "trailer". |
@antonini But the result didn't change with the smaller file(151 kb).The downloaded file was still 0. I tried to debug on take and netbout but didn't see any error :( And the local server handled the uploaded file successfully (I checked size of the uploaded file.) I can't reproduce this bug on my local machine :( Also when I tried to upload 6 MB file on my netbout account, it gave me below error.
|
@antonini try to upload a txt file which is larger than 5 mb to netbout and you will get that error. It seems there is a problem with txt file. |
@mstzn36 I just uploaded an txt with 1kb and another with 9mb. And everything worked fine. |
@antonini I created a new bout and uploaded file.It didn't throw any error. I guess the problem was with my bout which was created by yegor256/netbout#758. |
@mstzn36 Have you tried with a bout created from web page? |
@antonini yes of course.It did not give any error. |
@antonini it's your ticket, you're free to close it any moment |
@yegor256 Ok. |
@davvd Sorry, I did not understood what you meant with your question. |
@elenavolokhova please, let us know what do you think about this ticket, according to our QA rules |
@davvd There was no solution provided in this ticket. So the quality is bad here. |
@elenavolokhova thank you for paying attention |
@mstzn36 10 mins was added to the account of @elenavolokhova (for QA review), in transaction 64381283 |
@davvd will I get 30 points ? |
@mstzn36 of course, in a few hours |
When I try to upload large files using a
multipart/form-data
form, server's throws an error saying thatthere is no LF after CR in header, line #%d: \"%s\.
on class RqLive.To reproduce this error, run netbout in debug and put a breakpoint on that line. Try to upload a file with more that 5 mb.
Browser will try to upload the file in chunks, but takes does not support that.
The text was updated successfully, but these errors were encountered: