If you are using v3.0.4 you might be experiencing
ERROR -- : ❌ Unhandled error: NoMethodError: undefined method `await' for an instance of HTTPX::Response(plugin)
This bug prevents your bot from sending responses or overall functionality
The issue is compatibility with httpx async api
What happened
Telegem v3.0.4 used an async pattern (response.await) that worked with old httpx versions but newer httpx release probably changed their async Api. This caused all api calls to fail when trying to send responses
especially the ctx.reply
Temporary solution
gem uninstall httpx
gem install httpx -v 0.22.0
we could use your help
Httpx is a fantastic library/gem with incredible performance. But it’s async api changes rapidly.As a solo maintainer
I could use some help from the community
Ways to contribute
- TEST different httpx async patterns and share what works
- Help document httpx compatibility across different versions
- Submit MR(pr for github-ish) for more robust httpx handling
- Share your use case
Let’s make Telegem rock-solid together
Top comments (0)