requests.exceptions.InvalidHeader: Invalid return character or leading space in header: Authorizatio

vinodhec
File "/home/vinodhpr/test/ATF_new.py", line 422, in updateSL
orders=kite.orders()
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/kiteconnect-3.7.7-py3.5.egg/kiteconnect/connect.py", line 379, in orders
return self._format_response(self._get("orders"))
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/kiteconnect-3.7.7-py3.5.egg/kiteconnect/connect.py", line 697, in _get
return self._request(route, "GET", params)
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/kiteconnect-3.7.7-py3.5.egg/kiteconnect/connect.py", line 745, in _request
raise e
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/kiteconnect-3.7.7-py3.5.egg/kiteconnect/connect.py", line 742, in _request
proxies=self.proxies)
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/requests/sessions.py", line 519, in request
prep = self.prepare_request(req)
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/requests/sessions.py", line 462, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/requests/models.py", line 314, in prepare
self.prepare_headers(headers)
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/requests/models.py", line 448, in prepare_headers
check_header_validity(header)
File "/home/vinodhpr/virtualenv/test/3.5/lib/python3.5/site-packages/requests/utils.py", line 942, in check_header_validity
raise InvalidHeader("Invalid return character or leading space in header: %s" % name)
requests.exceptions.InvalidHeader: Invalid return character or leading space in header: Authorization
Sign In or Register to comment.