Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

313
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!