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
Attempted to send an sync request with an AsyncClient instance.
sequence item 1: expected a bytes-like object, dict found
In data, judging by the code sources, you can only pass strings, dictionaries, or bytes (+= arrays of bytes). If you pass any array other than a byte array to data, it will raise an incorrect error: Attempted to send a sync request with an AsyncClient instance. (We're using an asynchronous client to send an asynchronous request, mhm)
Honestly, I'm too lazy to look through the sources and figure out what went wrong, but in general, it should return the same error as it does with a synchronous client - sequence item 1: expected a bytes-like object, dict found.
The text was updated successfully, but these errors were encountered:
httpx Version:
0.28.1
In
data
, judging by the code sources, you can only pass strings, dictionaries, or bytes (+= arrays of bytes). If you pass any array other than a byte array to data, it will raise an incorrect error:Attempted to send a sync request with an AsyncClient instance.
(We're using an asynchronous client to send an asynchronous request, mhm)Honestly, I'm too lazy to look through the sources and figure out what went wrong, but in general, it should return the same error as it does with a synchronous client -
sequence item 1: expected a bytes-like object, dict found
.The text was updated successfully, but these errors were encountered: