You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get {'id': '123'} as result of await request.post().
Actual behaviour
self = <Request POST /api/test >
async def read(self):
"""Read request body if present.
Returns bytes object with full request content.
"""
if self._read_bytes is None:
body = bytearray()
while True:
> chunk = await self._payload.readany()
E AttributeError: 'BytesPayload' object has no attribute 'readany'
Steps to reproduce
Just run the code
Your environment
Win10, python3.6, aiohttp 3.1.0
So hard to find a document or example, thanks for help.
The text was updated successfully, but these errors were encountered:
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.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new
Long story short
I tried this:
Expected behaviour
Get
{'id': '123'}
as result ofawait request.post()
.Actual behaviour
Steps to reproduce
Just run the code
Your environment
Win10, python3.6, aiohttp 3.1.0
So hard to find a document or example, thanks for help.
The text was updated successfully, but these errors were encountered: