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: |

Select: Settings – Manage Channel – Administrators – Add administrator. From your list of subscribers, select the correct user. A new window will appear on the screen. Check the rights you’re willing to give to your administrator. A Telegram channel is used for various purposes, from sharing helpful content to implementing a business strategy. In addition, you can use your channel to build and improve your company image, boost your sales, make profits, enhance customer loyalty, and more. For crypto enthusiasts, there was the “gm” app, a self-described “meme app” which only allowed users to greet each other with “gm,” or “good morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data. To view your bio, click the Menu icon and select “View channel info.” Healing through screaming therapy
from us


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