ERROR
When attempting to connect to an ArcGIS Online or an ArcGIS Enterprise portal organization account using the GIS object, the process fails and the following error message is returned in the python terminal:
Error: Exception: A general error occurred: Invalid username or password.
Ensure the username and password passed in the GIS object contains the correct spelling and are case sensitive.
Apply alternative methods to logging in depending on the organization's authentication settings. Refer to ArcGIS API for Python: Working with different authentication schemes for details on the various authentication schemes and methods.
Article ID: 000033069
Get help from ArcGIS experts
Download the Esri Support App