Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 1096, in _validate_conn
conn.connect()
File "C:\Program Files\Python310\lib\site-packages\urllib3\connection.py", line 642, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
File "C:\Program Files\Python310\lib\site-packages\urllib3\connection.py", line 782, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
File "C:\Program Files\Python310\lib\site-packages\urllib3\util\ssl.py", line 470, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
File "C:\Program Files\Python310\lib\site-packages\urllib3\util\ssl.py", line 514, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Program Files\Python310\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "C:\Program Files\Python310\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "C:\Program Files\Python310\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
TimeoutError: _ssl.c:980: The handshake operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "C:\Program Files\Python310\lib\site-packages\urllib3\util\retry.py", line 470, in increment
raise reraise(type(error), error, _stacktrace)
File "C:\Program Files\Python310\lib\site-packages\urllib3\util\util.py", line 39, in reraise
raise value
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
response = self._make_request(
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 469, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 370, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\MUG_Level_NiftyOption Live\1.3 LTP & Historical\A6_LTP_Entry.py", line 277, in <module>
raise e
File "c:\Users\Administrator\Desktop\MUG_Level_NiftyOption Live\1.3 LTP & Historical\A6_LTP_Entry.py", line 275, in <module>
GettingLtpData()
File "c:\Users\Administrator\Desktop\MUG_Level_NiftyOption Live\1.3 LTP & Historical\A6_LTP_Entry.py", line 116, in GettingLtpData
LTP = obj.ltpData(Script_Exchange, tradingsymbol, symboltoken)
File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 343, in ltpData
ltpDataResponse= self._postRequest("api.ltp.data",params)
File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 228, in _postRequest
return self._request(route, "POST", params)
File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 188, in _request
raise e
File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 177, in _request
r = requests.request(method,
File "C:\Program Files\Python310\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\Python310\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\requests\adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
Facing this error since last 1 month. Can someone help