Public bug reported: $ lsb_release -rd Description: Ubuntu 22.04 LTS Release: 22.04
$ apt-cache policy python3-fastapi python3-fastapi: Installed: 0.63.0-2 Candidate: 0.63.0-2 Version table: *** 0.63.0-2 500 500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages 100 /var/lib/dpkg/status Example: from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"Status": "ok"} Traceback: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi result = await app(self.scope, self.receive, self.send) File "/usr/lib/python3/dist-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ return await self.app(scope, receive, send) File "/usr/lib/python3/dist-packages/fastapi/applications.py", line 199, in __call__ await super().__call__(scope, receive, send) File "/usr/lib/python3/dist-packages/starlette/applications.py", line 119, in __call__ await self.middleware_stack(scope, receive, send) File "/usr/lib/python3/dist-packages/starlette/middleware/errors.py", line 181, in __call__ raise exc File "/usr/lib/python3/dist-packages/starlette/middleware/errors.py", line 159, in __call__ await self.app(scope, receive, _send) File "/usr/lib/python3/dist-packages/starlette/exceptions.py", line 87, in __call__ raise exc File "/usr/lib/python3/dist-packages/starlette/exceptions.py", line 76, in __call__ await self.app(scope, receive, sender) File "/usr/lib/python3/dist-packages/starlette/routing.py", line 659, in __call__ await route.handle(scope, receive, send) File "/usr/lib/python3/dist-packages/starlette/routing.py", line 259, in handle await self.app(scope, receive, send) File "/usr/lib/python3/dist-packages/starlette/routing.py", line 61, in app response = await func(request) File "/usr/lib/python3/dist-packages/fastapi/routing.py", line 191, in app solved_result = await solve_dependencies( File "/usr/lib/python3/dist-packages/fastapi/dependencies/utils.py", line 483, in solve_dependencies response = response or Response( File "/usr/lib/python3/dist-packages/starlette/responses.py", line 50, in __init__ self.init_headers(headers) File "/usr/lib/python3/dist-packages/starlette/responses.py", line 77, in init_headers and not (self.status_code < 200 or self.status_code in (204, 304)) TypeError: '<' not supported between instances of 'NoneType' and 'int' ** Affects: fastapi (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970557 Title: ISE on any request To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs