Invalid method encountered or duplicate "Content-Length" header?

Thats strange. I am not doing anything related to FastAPI or uvicorn in my FlairTokenizer deployment. Code for this is adapted from Ray Serve: Ray Serve vs Regular Web server Performance? - #2 by jiaodong