Thomas,
I replaced the port number with 6443 and updated all of the http calls to https but I still get these errors - do you think this is the self signed cert that you mentioed?
Traceback (most recent call last):
File "C:\Temp\python_scripts\map_service_stats\mss.py", line 203, in <module>
sys.exit(main(sys.argv[1:]))
File "C:\Temp\python_scripts\map_service_stats\mss.py", line 56, in main
token = getToken(username, password, serverName, serverPort)
File "C:\Temp\python_scripts\map_service_stats\mss.py", line 183, in getToken
if not assertJsonSuccess(data):
File "C:\Temp\python_scripts\map_service_stats\mss.py", line 193, in assertJsonSuccess
obj = json.loads(data)
File "C:\Python27\ArcGIS10.7\lib\json\__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\Python27\ArcGIS10.7\lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\ArcGIS10.7\lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Thanks,
Bernie.