Activity log for bug #1970557

Date Who What changed Old value New value Message
2022-04-27 07:54:03 Pavel Francírek bug added bug
2022-06-20 06:13:32 Launchpad Janitor fastapi (Ubuntu): status New Confirmed
2023-04-19 00:52:56 Enrique bug added subscriber Enrique
2023-04-19 00:54:07 Enrique fastapi (Ubuntu): assignee Enrique (enrique-garcia)
2023-04-19 00:54:24 Enrique fastapi (Ubuntu): assignee Enrique (enrique-garcia)
2023-04-19 01:00:58 Enrique bug added subscriber Sandro Tosi
2023-04-20 13:44:10 Ezio Vernacotola bug added subscriber Ezio Vernacotola
2023-07-17 07:09:58 Sebastian Wagner bug added subscriber Sebastian Wagner
2023-08-09 13:12:45 Rhonda D'Vine attachment added fastapi_0.63.0-2_sru.debdiff.gz https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557/+attachment/5691294/+files/fastapi_0.63.0-2_sru.debdiff.gz
2023-08-09 16:14:53 Ubuntu Foundations Team Bug Bot tags patch
2023-09-02 03:00:32 Steve Langasek fastapi (Ubuntu): status Confirmed Incomplete
2023-09-02 03:51:21 Sandro Tosi removed subscriber Sandro Tosi
2023-09-20 09:36:49 Rhonda D'Vine fastapi (Ubuntu): status Incomplete Confirmed
2023-10-14 00:00:29 Steve Langasek description $ 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' [ Impact ] The package can't be used at all in its current state because it doesn't work with one of its central dependencies. It creates a backtrace as seen in the original bug description on simple usage cases. The bugfix makes the package compatible with the newer version of the dependency. [ Test Plan ] See the example code in the bug description, but for convenience I paste it here again: Create a file "fastapi-test.py" with the following code: ----- from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"Status": "ok"} ----- Then run that file with python interpreter. [ Where problems could occur ] The package isn't usable at all right now. It can't get worse than that, frankly speaking. [Other info] $ 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'
2023-10-14 00:05:35 Steve Langasek fastapi (Ubuntu Jammy): status New Fix Committed
2023-10-14 00:05:37 Steve Langasek bug added subscriber Ubuntu Stable Release Updates Team
2023-10-14 00:05:42 Steve Langasek bug added subscriber SRU Verification
2023-10-14 00:06:01 Steve Langasek tags patch patch verification-needed verification-needed-jammy
2023-10-30 14:20:23 Rhonda D'Vine tags patch verification-needed verification-needed-jammy patch verification-done-jammy verification-needed
2023-10-30 14:21:14 Rhonda D'Vine tags patch verification-done-jammy verification-needed patch verification-done verification-needed-jammy
2023-10-30 14:22:19 Rhonda D'Vine tags patch verification-done verification-needed-jammy patch verification-done verification-done-jammy
2023-11-22 04:56:55 Launchpad Janitor fastapi (Ubuntu Jammy): status Fix Committed Fix Released
2023-11-22 04:57:00 Chris Halse Rogers removed subscriber Ubuntu Stable Release Updates Team