Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

314
Vistas
fastapi 0.73.0 issue : TypeError: '<' not supported

My code is working fine for fastapi==0.72.0. But for fastapi==0.73.0, its throws the below error.

TypeError: '<' not supported between instances of 'NoneType' and 'int'

Rest, there is no change in the code for the 2 versions.

It breaking at call_next response(its endpoint_function in my case)

#middleware added
@project.middleware("http")
async def request_check(request:Request,endpoint_function):
   token=request.headers.get("token")
   request_url=request["path"]
   url_4th=str(request.url).split("/")[3]
   #public endpoint check
   if url_4th=="public" or url_4th=="":
      response=await endpoint_function(request)
      return response
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda