OPENSOURCE_FINDINGS_PYTHON Telegram 137
🚀 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



tgoop.com/opensource_findings_python/137
Create:
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

View MORE
Open in Telegram


Telegram News

Date: |

The visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. Public channels are public to the internet, regardless of whether or not they are subscribed. A public channel is displayed in search results and has a short address (link). Telegram channels fall into two types: Content is editable within two days of publishing Clear
from us


Telegram Находки в опенсорсе: Python
FROM American