Skip to content

httpx deprecation warnings #646

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

Open
natan-abolafya opened this issue Apr 16, 2025 · 0 comments
Open

httpx deprecation warnings #646

natan-abolafya opened this issue Apr 16, 2025 · 0 comments

Comments

@natan-abolafya
Copy link

Hello.

We've been getting this warning quite a lot in our tests for some time

 ....\.venv\Lib\site-packages\httpx\_models.py:408: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.
    headers, stream = encode_request(

I kept looking for a bad use on our code and couldn't find it and assumed it was a false report. Until today when I decided to debug it and found out that it's python-keycloak which is causing this warning. More info at https://www.python-httpx.org/compatibility/#request-content

I would be happy to make a PR unless there is a need to keep it this way, such as httpx backwards compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant