AsyncClient requires content to be async iterable *and not* sync iterable
#3581
Unanswered
jakkdl
asked this question in
Potential Issue
Replies: 1 comment 2 replies
-
Is that true? Lines 1724 to 1727 in 6c7af96 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Related to #1620, but not fixed by #3339
Async streaming requests somewhat sensible requires async bytes generators, but it will error if the streaming content is a sync generator and async generator. This makes no sense, and is a hassle as it requires a wrapper that hides the sync interface for httpx to accept it https://github.com/aio-libs/aiobotocore/blob/fe5ee7c7169783514f2b15fb8098fba97ccf3f65/aiobotocore/httpxsession.py#L194-L208
repro:
Beta Was this translation helpful? Give feedback.
All reactions