Open mike-guaranteed opened 10 months ago
I looked into it a bit more, and it seems we were using uvloop
in uvicorn
because it was available. If I switch uvicorn
to useasyncio
it still doesn't work. If I use hypercorn
with the standard config (asyncio
) this code functions fine. If I use hypercorn
with uvloop
this code does not work. Since it appears the twilio library is not compatible with uvloop
, which is fine with us, I can't quite figure out why it won't work in uvicorn
with the asyncio
event loop, has this behavior been seen before? Our version of uvicorn is 0.23.2
.
Hi @mike-guaranteed! I would require more context regarding how you are using uvicorn. We can look into this. Thanks!
Issue Summary
A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, or code examples.
Steps to Reproduce
Client
with anAsyncTwilioHttpClient
await client.messages.create_async()
Code Snippet
If I run
create_async
like this it works:I have also tried using the regular HTTP client in a non-async path definition, but that also hangs.
Exception/Log
None, the future never resolves
Technical details: