TGViewer
Находки в опенсорсе: Python Находки в опенсорсе: Python @opensource_findings_python · 1.06K subscribers
Post #137 760
🚀 New issue to ag2ai/faststream by @lesnik512
📝 Bug: async api route returns 500 if broker is set by set_broker (#2588)

Hi and thank you for this great framework!

Describe the bug
async api route returns 500 if broker is set by method set_broker

How to reproduce

async def test_bug() -> None:
app = faststream.asgi.AsgiFastStream(
asyncapi_path="/docs/"
)
app.set_broker(RedisBroker())

with TestClient(app=app) as test_client:
response = test_client.get("/docs/")
assert response.status_code == 500

app2 = faststream.asgi.AsgiFastStream(
RedisBroker(),
asyncapi_path="/docs/"
)

with TestClient(app=app2) as test_client:
response = test_client.get("/docs/")
assert response.status_code == 200

#bug #good_first_issue

sent via relator
  • 🤔 3
More from @opensource_findings_python
  1. Sep 25, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `Settings.throttling_al…
  2. Sep 25, 2026🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn 📝 Incorrect Jones c…
  3. Sep 25, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `_validate_throttling`…
  4. Sep 24, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 Flaky `test_empty_valid…
  5. Sep 24, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `CookieJWT[A]syncAuth`…
  6. Sep 23, 2026🚀 New issue to ag2ai/faststream by @IvanKirpichnikov 📝 Feature: Implementation of the `A…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →