If you have trailing spaces in your headers, httpx raises this error.
e.g: httpx.LocalProtocolError: Illegal header value b'Bearer xxxxx '
httpx.LocalProtocolError: Illegal header value b'Bearer xxxxx '