Esri / developer-support

Proof of concept developer code and samples to help be successful with all ArcGIS developer products (Python, NET, JavaScript, Android…). The repository is designed to be an exchange for sharing coding conventions and wisdom to developers at all skill levels.
Apache License 2.0
266 stars 164 forks source link

Error getting token part 2 #345

Open tpcolson opened 4 years ago

tpcolson commented 4 years ago

Similar to https://github.com/Esri/developer-support/issues/280, I'm getting

Traceback (most recent call last): File "C:\Temp\NEXRAD_PYTHON\update-Tiles-From-TPK\update-Tiles-From-TPK\OverWriteTilePackage.py", line 83, in token= getToken(user, pw) File "C:\Temp\NEXRAD_PYTHON\update-Tiles-From-TPK\update-Tiles-From-TPK\OverWriteTilePackage.py", line 26, in getToken return jres['token'],jres['ssl'] KeyError: 'token'

{"error":{"code":400,"message":"Unable to generate token.","details":["'username' must be specified.","'password' must be specified."]}}

Despite using the same, correct username and pw that I can login to AGOL successfully, so the issue IS NOT incorrect username or pw.

tpcolson commented 4 years ago

https://github.com/Esri/developer-support/tree/master/python/general-python/update-tile-service-from-tpk

jgravois commented 4 years ago

the issue IS NOT incorrect username or pw.

the error seems to indicate that a username and/or password aren't making it through in the request at all.