--------------------------------------------------------------------------- SSLCertVerificationError Traceback (most recent call last) C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 698 # Make the request on the httplib connection object. --> 699 httplib_response = self._make_request( 700 conn, C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 381 try: --> 382 self._validate_conn(conn) 383 except (SocketTimeout, BaseSSLError) as e: C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\connectionpool.py in _validate_conn(self, conn) 1009 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` -> 1010 conn.connect() 1011 C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\connection.py in connect(self) 410 --> 411 self.sock = ssl_wrap_socket( 412 sock=conn, C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\util\ssl_.py in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir, key_password, ca_cert_data, tls_in_tls) 427 if send_sni: --> 428 ssl_sock = _ssl_wrap_socket_impl( 429 sock, context, tls_in_tls, server_hostname=server_hostname C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\util\ssl_.py in _ssl_wrap_socket_impl(sock, ssl_context, tls_in_tls, server_hostname) 471 if server_hostname: --> 472 return ssl_context.wrap_socket(sock, server_hostname=server_hostname) 473 else: C:\Users\Anish K\anaconda3\lib\ssl.py in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session) 499 # ctx._wrap_socket() --> 500 return self.sslsocket_class._create( 501 sock=sock, C:\Users\Anish K\anaconda3\lib\ssl.py in _create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session) 1039 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets") -> 1040 self.do_handshake() 1041 except (OSError, ValueError): C:\Users\Anish K\anaconda3\lib\ssl.py in do_handshake(self, block) 1308 self.settimeout(None) -> 1309 self._sslobj.do_handshake() 1310 finally: SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125) During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) C:\Users\Anish K\anaconda3\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 754 --> 755 retries = retries.increment( 756 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] C:\Users\Anish K\anaconda3\lib\site-packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 573 if new_retry.is_exhausted(): --> 574 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 575 MaxRetryError: HTTPSConnectionPool(host='abd.pksi.com', port=8777): Max retries exceeded with url: /cas/sessions (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)'))) During handling of the above exception, another exception occurred: SSLError Traceback (most recent call last) C:\Users\Anish K\anaconda3\lib\site-packages\swat\cas\rest\connection.py in _connect(self, session, locale, wait_until_idle) 372 while put_retries < connection_retries: --> 373 res = self._req_sess.put(url, data=b'', params=params) 374 if res.status_code == 502: C:\Users\Anish K\anaconda3\lib\site-packages\requests\sessions.py in put(self, url, data, **kwargs) 601 --> 602 return self.request('PUT', url, data=data, **kwargs) 603 C:\Users\Anish K\anaconda3\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 541 send_kwargs.update(settings) --> 542 resp = self.send(prep, **send_kwargs) 543 C:\Users\Anish K\anaconda3\lib\site-packages\requests\sessions.py in send(self, request, **kwargs) 654 # Send the request --> 655 r = adapter.send(request, **kwargs) 656 C:\Users\Anish K\anaconda3\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 513 # This branch is for urllib3 v1.22 and later. --> 514 raise SSLError(e, request=request) 515 SSLError: HTTPSConnectionPool(host='abd.pksi.com', port=8777): Max retries exceeded with url: /cas/sessions (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)'))) During handling of the above exception, another exception occurred: IndexError Traceback (most recent call last) C:\Users\Anish K\anaconda3\lib\site-packages\swat\cas\rest\connection.py in _set_next_connection(self) 435 try: --> 436 self._current_hostname = self._hostname[self._host_index] 437 self._current_baseurl = self._baseurl[self._host_index] IndexError: list index out of range During handling of the above exception, another exception occurred: SWATError Traceback (most recent call last) in ----> 1 conn = swat.CAS(hostname='abd.pksi.com', 2 port=8777, username='TESTVIYA34PKSI.COM\anishk', password='Pegasus@25151') 3 C:\Users\Anish K\anaconda3\lib\site-packages\swat\cas\connection.py in __init__(self, hostname, port, username, password, session, locale, nworkers, name, authinfo, protocol, path, ssl_ca_list, authcode, **kwargs) 433 params = (hostname, port, username, password, soptions, self._sw_error) 434 if protocol in ['http', 'https']: --> 435 self._sw_connection = rest.REST_CASConnection(*params) 436 else: 437 self._sw_connection = clib.SW_CASConnection(*params) C:\Users\Anish K\anaconda3\lib\site-packages\swat\cas\rest\connection.py in __init__(self, hostname, port, username, password, soptions, error) 314 }) 315 --> 316 self._connect(session=session, locale=locale, wait_until_idle=False) 317 318 def _connect(self, session=None, locale=None, wait_until_idle=True): C:\Users\Anish K\anaconda3\lib\site-packages\swat\cas\rest\connection.py in _connect(self, session, locale, wait_until_idle) 412 logger.debug('Connection error, retrying...') 413 if num_retries > connection_retries: --> 414 self._set_next_connection() 415 num_retries = 0 416 else: C:\Users\Anish K\anaconda3\lib\site-packages\swat\cas\rest\connection.py in _set_next_connection(self) 441 self._current_baseurl = '' 442 self._current_port = -1 --> 443 raise SWATError('Unable to connect to any URL in the list: %s' % 444 ', '.join(self._baseurl)) 445 SWATError: Unable to connect to any URL in the list: https://abd.pksi.com:8777/