tgoop.com/opensource_findings_python/137
Create:
Last Update:
Last Update:
🚀 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
BY Находки в опенсорсе: Python
Share with your friend now:
tgoop.com/opensource_findings_python/137