Hi I am getting the following error, on querying the market data every 1 second for around 20 min.
Traceback (most recent call last): File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 384, in _make_request six.raise_from(e, None) File "", line 2, in raise_from File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 380, in _make_request httplib_response = conn.getresponse() File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1331, in getresponse response.begin() File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 297, in begin version, status, reason = self._read_status() File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 258, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\socket.py", line 586, in readinto return self._sock.recv_into(b) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\contrib\pyopenssl.py", line 298, in recv_into raise timeout('The read operation timed out') socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 445, in send timeout=timeout File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\retry.py", line 367, in increment raise six.reraise(type(error), error, _stacktrace) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\packages\six.py", line 686, in reraise raise value File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen chunked=chunked) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 306, in _raise_timeout raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 10, in File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.4-py3.6.egg\kiteconnect\connect.py", line 546, in quote File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.4-py3.6.egg\kiteconnect\connect.py", line 697, in _get File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.4-py3.6.egg\kiteconnect\connect.py", line 745, in _request File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\kiteconnect-3.7.4-py3.6.egg\kiteconnect\connect.py", line 742, in _request File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 512, in request resp = self.send(prep, **send_kwargs) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 622, in send r = adapter.send(request, **kwargs) File "C:\Users\ajakhar\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 526, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)