Here's the error output. I should have thought of including this originally
Jupyter notebook cell:
from arcgis.gis import GIS
gis = GIS("https://my.arcgisurl.com/arcgis", username="MYUSERNAME", password="MYPASSWORD", verify_cert=False)
I've got the server admin guy checking to make sure there isn't some other ssl cert thing going on, but other operations seem to work.
thanks
- Mike
---------------------------------------------------------------------------HTTPError Traceback (most recent call last)C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in __init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs) 261 verify_cert=self._verify_cert,--> 262 client_id=self._client_id) 263 except Exception as e:C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\portalpy.py in __init__(self, url, username, password, key_file, cert_file, expiration, referer, proxy_host, proxy_port, connection, workdir, tokenurl, verify_cert, client_id) 162 verify_cert=verify_cert,--> 163 client_id=client_id) 164 #self.get_version(True)C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py in __init__(self, baseurl, tokenurl, username, password, key_file, cert_file, expiration, all_ssl, referer, proxy_host, proxy_port, connection, verify_cert, client_id) 283 if cert_file is None and key_file is None:--> 284 self.login(username, password, expiration, client_id) 285 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py in login(self, username, password, expiration, client_id) 526 --> 527 resp = self.post('', { 'f': 'json' }, add_token=False) # probe portal to find auth scheme 528 # if basic, digest, NTLM or Kerberos, etc is being usedC:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py in post(self, path, postdata, files, ssl, compress, is_retry, use_ordered_dict, add_token, verify_cert, token, try_json, out_folder, file_name, force_bytes, add_headers) 1085 #print("***"+url)-> 1086 resp = opener.open(url, data=encoded_postdata.encode()) 1087 resp_data, is_file = self._process_response(resp, C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py in open(self, fullurl, data, timeout) 531 meth = getattr(processor, meth_name)--> 532 response = meth(req, response) 533 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py in http_response(self, request, response) 641 response = self.parent.error(--> 642 'http', request, response, code, msg, hdrs) 643 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py in error(self, proto, *args) 569 args = (dict, 'default', 'http_error_default') + orig_args--> 570 return self._call_chain(*args) 571 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py in _call_chain(self, chain, kind, meth_name, *args) 503 func = getattr(handler, meth_name)--> 504 result = func(*args) 505 if result is not None:C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py in http_error_default(self, req, fp, code, msg, hdrs) 649 def http_error_default(self, req, fp, code, msg, hdrs):--> 650 raise HTTPError(req.full_url, code, msg, hdrs, fp) 651 HTTPError: HTTP Error 404: Not Found During handling of the above exception, another exception occurred: IndexError Traceback (most recent call last)<ipython-input-13-eec4db1a8661> in <module>() 1 from arcgis.gis import GIS----> 2 gis = GIS("https://my.arcgisserver.com/arcgis", username="MYUSERNAME", password="MYPASSWORD", verify_cert=False)C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in __init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs) 262 client_id=self._client_id) 263 except Exception as e:--> 264 if str(type(e.args[0])) == "<class 'ssl.SSLError'>": 265 raise RuntimeError("An untrusted SSL error occurred when attempting to connect to the provided GIS.\n" 266 "If you trust this server and want to proceed, add 'verify_cert=False' as an "IndexError: tuple index out of range