Closed boesiii closed 6 years ago
Looks like what you are doing is correct, however, I have noticed some strange quirks with AGOL and programmatic access. When you sign in with AGOL via your browser, the username is NOT case sensitive. But, when you access via Python and the REST API, the username is case sensitive.
Therefore, I would go into your AGOL account and make sure the username you are providing matches the case as it is set in the AGOL username. Also, to state the obvious, make sure the password you're using is also correct (this is always case sensitive).
The username was mixed with some uppercase characters so that fixed it.
I am trying to access a certain AGOL layer but receive an error "Invalid username or password". I am using the code below. I got the URL from item details page on ArcGIS online.
What am I doing wrong?