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
-
My use case requires a FastAPI server that acts as an API-Gateway. For an endpoint of
/api/email
the 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
await
keyword makes the request go through. Am I missing something?Beta Was this translation helpful? Give feedback.
All reactions