DEV Community

phåńtøm šłîçk
phåńtøm šłîçk

Posted on

Telegem v3.0.4 users : critical bug alert & call for help

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)
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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

  1. TEST different httpx async patterns and share what works
  2. Help document httpx compatibility across different versions
  3. Submit MR(pr for github-ish) for more robust httpx handling
  4. Share your use case

Let’s make Telegem rock-solid together

Top comments (0)