Skip to content
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

httpx: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content. #1404

Open
buhln opened this issue Jan 10, 2024 · 0 comments

Comments

@buhln
Copy link

buhln commented Jan 10, 2024

I am using httpx for asynchronous and SSL protected requests to an SOAP server.

httpx_ssl_verify = httpx.create_ssl_context(verify="cert.pem")
httpx_client = httpx.AsyncClient(auth=(user, password), verify=httpx_ssl_verify, timeout=15)

An example for the request itself in an async function is:

client = zeep.AsyncClient(wsdl, transport=AsyncTransport(client=httpx_client))

This requests are working fine but results in a deprecation warning, too:

python3.10/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.

I am not quiet sure if this is an issue of httpx itself or zeep, but I see no possibility to follow the recommendation of the warning message from my understanding.

Used versions:

zeep==4.2.1
httpx==0.26.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants