-
-
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
aiohttp.MultipartWriter.append() returns None #1798
Comments
could you post full traceback |
That is the full traceback by the way, because |
@fafhrd91 Did you find a workaround for your problem? |
@kxepal could you take a look? |
This is not a bug. This is documentation issue related to payloads |
So, undocumented breaking change? |
New way of doing this, using the new payload system.
|
I believe this is fixed by #2759 |
Yes, you are right |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
Scenario is to send a multi-part message from test client containing a file with custom filename. Following the instructions from http://aiohttp.readthedocs.io/en/stable/multipart.html#sending-multipart-requests
It used to work in aiohttp 1.3.5, in aiohttp 2.0.6 it generates a None exception and the documentation doesn't mention any clear breaking change.
Expected behaviour
It should work as v1.3.5 or the documentation should be clearly updated to a working example.
Actual behaviour
The line
mpwriter.append
is now returningNone
, so thepart.set_content_disposition
is raising an exception.Steps to reproduce
Your environment
Ubuntu 16.04, Python 3.5.2, pip install of aiohttp 2.0.6
The text was updated successfully, but these errors were encountered: