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

**URL:** <https://discuss.ray.io/t/invalid-method-encountered-or-duplicate-content-length-header/4786>\
**Category:** Ray Serve\
**Created:** [January 25, 2022, 11:15pm UTC](https://discuss.ray.io/t/invalid-method-encountered-or-duplicate-content-length-header/4786 "2022-01-25T23:15:31Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![lihost](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/lihost/32/1896_2.png) [@lihost](https://discuss.ray.io/u/lihost)\
**Post date:** [January 26, 2022, 12:32am UTC](https://discuss.ray.io/t/invalid-method-encountered-or-duplicate-content-length-header/4786/7 "2022-01-26T00:32:53Z")

</div>

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](https://discuss.ray.io/t/ray-serve-ray-serve-vs-regular-web-server-performance/4513/2)

---

_[View the full topic](https://discuss.ray.io/t/invalid-method-encountered-or-duplicate-content-length-header/4786)._
