Closed ALee008 closed 2 years ago
Hi. I just noticed that the line app = svc.asgi_app
in the guidance is not needed, causing the issue we meet here.
Just removing it from your service.py
should do the trick!
Hey @bojiang , thanks for your reply. Removing app = svc.asgi_app
solved this issue :thumbsup:
Describe the bug I am trying this example from the documentation about mounting custom middleware. I copy and pasted the fastapi example and served it. Upon startup I am encountering the following traceback:
To Reproduce Steps to reproduce the issue:
service.py
bentoml serve service:svc --reload
Expected behavior Expecting a working example where the
/hello
endpoint returns{"Hello": "World"}
.Environment:
Additional context