Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

316
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda