-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Could not find starting boundary in request.post() and reader.next() #3544
Comments
GitMate.io thinks the contributor most likely able to help you is @asvetlov. Possibly related issues are #187 (Request.POST preloading), #161 (aiohttp can't send files by POST request correct), #1765 (request.post() ignores blank values), #1557 (POST request always follow redirects), and #114 (Exception with MultiDict in POST request). |
Pull Request is welcome! |
sorry if i ask, but of what... |
Hm.... @The-CJ , could you share via gist full raw HTTP request that triggers that error? Steps to reproduce are good, but I fear I couldn't reproduce issues by them. |
Yeah Sure. Full raw request send by client: |
Awesome! Thank you! I quick looked on them and noticed that second one looks like truncated: there is no close boundary nor json Discord response. Is that dump complete? Because otherwise the error is correct. |
the second one has no response, because the code of my server never reached the response part, it failed at |
no_success.txt |
Well, i was testing some more stuff, and tryed running example code from my home pc https://gist.github.com/The-CJ/e582041992dcebf7a70af5cd79f738ee both, the normal and the ajax way work, it also response with "413 Request Entity Too Large" if needed, workes totally fine |
Hello, I am have the same problem, my server is failed at |
Long story short
I want to upload a image and one or multiple arguments to it.
Seems to work on some images, some have empty payload and some throwing "Could not find starting boundary" error
Expected behaviour
It reads the post content if possible and :
same for the multipart() , reader.next() method
Actual behaviour
request.post() throws a "ValueError: Could not find starting boundary b'------stuff'"
request.multipart() -> reader.next() throws a "ValueError: Could not find starting boundary b'------stuff'"
requests with a body > 2,8MB image have a empty request.post() and return reader.next() = None should trow a HTTPRequestEntityTooLarge error
Seems to work find if no file is involved or file < 1MB
(no, i never changed the client_max_size, should be 1024*2)
Client (Chrome)
Client Raw
Server
Steps to reproduce
Client
Server
Your environment
Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-42-generic x86_64)
VM Server
Python 3.6.7
aiohttp 3.5.4
server
The text was updated successfully, but these errors were encountered: