I'm pretty new to python and when logging into a users arcgis online account in python 3.9.13 with arcgis.gis as
gis=GIS(url='ago url', username=u, password=p)
and there is an "at" symbol followed by numbers in the password the connection fails with an "Exception: Unable to generate token. Invalid username or password" error. When the exact same username and password is used in AGO Notebook it works fine.
I've tried multiple things to make it work including urllib.parse.qoute, p.format, and some others, but can't get anything to work so far. Is there a solution out there I could try or is this an issue with the API? "At" symbols work fine with other user passwords, just not when there is a number following it. Has anyone else run into this issue and resolved it?
Works just fine in AGO Notebook: