ISE on any request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fastapi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[ 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://
100 /var/lib/
Example:
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"Status": "ok"}
Traceback:
Traceback (most recent call last):
File "/usr/lib/
result = await app(self.scope, self.receive, self.send)
File "/usr/lib/
return await self.app(scope, receive, send)
File "/usr/lib/
await super()
File "/usr/lib/
await self.middleware
File "/usr/lib/
raise exc
File "/usr/lib/
await self.app(scope, receive, _send)
File "/usr/lib/
raise exc
File "/usr/lib/
await self.app(scope, receive, sender)
File "/usr/lib/
await route.handle(scope, receive, send)
File "/usr/lib/
await self.app(scope, receive, send)
File "/usr/lib/
response = await func(request)
File "/usr/lib/
solved_result = await solve_dependencies(
File "/usr/lib/
response = response or Response(
File "/usr/lib/
self.
File "/usr/lib/
and not (self.status_code < 200 or self.status_code in (204, 304))
TypeError: '<' not supported between instances of 'NoneType' and 'int'
tags: | added: patch |
Changed in fastapi (Ubuntu): | |
status: | Confirmed → Incomplete |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.