Skip to content

fix: avoid blocking async agent handlers#44

Open
wyf027 wants to merge 2 commits into
fetchai:mainfrom
wyf027:fix/async-http-agent-handlers
Open

fix: avoid blocking async agent handlers#44
wyf027 wants to merge 2 commits into
fetchai:mainfrom
wyf027:fix/async-http-agent-handlers

Conversation

@wyf027

@wyf027 wyf027 commented May 18, 2026

Copy link
Copy Markdown

Summary

  • replace blocking HTTP calls in the Internet Computer example with aiohttp async requests
  • use aiohttp for Pollinations image downloads in the payment protocol example
  • move synchronous Agno knowledge search/model calls off the uAgents event loop with asyncio.to_thread

Verification

  • git diff --check
  • python3 -m py_compile web3/internet-computer/fetch/agent.py image-agent-payment-protocol/payment_proto.py Rag-agent/ango/agent.py

Closes #41

@gautammanak1

Copy link
Copy Markdown
Collaborator

@leno23, please fix the CI check

@gautammanak1

Copy link
Copy Markdown
Collaborator

Thanks for the contribution 🚀

The CI for this PR is currently failing. Please fix the following so we can move forward:

  • format — run ruff format . and commit the result
  • lint — run ruff check . --fix and resolve remaining warnings
  • typecheck — fix the reported type errors
  • stargazer-gate — please ⭐ star this repository (the gate passes once you've starred)

Once the checks are green it'll be ready for maintainer review. Let me know if you need any help! 🙌

@github-actions github-actions Bot added bug Something isn't working gssoc26 GirlScript Summer of Code 2026 contribution level2 GSSoC level 2 - intermediate (medium points) labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working gssoc26 GirlScript Summer of Code 2026 contribution level2 GSSoC level 2 - intermediate (medium points)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Blocking HTTP calls in asynchronous agent handlers

2 participants