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

AsyncClient.__init__() got an unexpected keyword argument 'app' #65

Open
shoang22 opened this issue Dec 2, 2024 · 1 comment
Open
Labels
documentation Improvements or additions to documentation

Comments

@shoang22
Copy link

shoang22 commented Dec 2, 2024

Hello,

In their most recent release, the httpx library removed their app parameter from AsyncClient.__init__(), which breaks the ability to use manager.app. Is there a way to circumvent this issue without downgrading?

@florimondmanca
Copy link
Owner

Hello,

It seems the docs should be updated because HTTPX now requires the use of the transport argument

As we can see in the docs here: https://www.python-httpx.org/advanced/transports/#asgi-transport

So, something along the lines of: AsyncClient(transport=ASGITransport(app)) 👍

@florimondmanca florimondmanca added the documentation Improvements or additions to documentation label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants