httpx async api misbehaving #1638
Unanswered
onlinejudge95
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
From first page of docs "For more advanced topics, see the Advanced Usage section, the async support section" Check this: https://www.python-httpx.org/async/ |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case requires a FastAPI server that acts as an API-Gateway. For an endpoint of
/api/emailthe gateway sends a request to one of my services which send out an email. Given the nature of my service, I decide to use httpx for sending the request in an async manner. But I receive the following errorHere is my route definition
Whereas removing the
awaitkeyword makes the request go through. Am I missing something?Beta Was this translation helpful? Give feedback.
All reactions