developer-support icon indicating copy to clipboard operation
developer-support copied to clipboard

Error getting token part 2

Open tpcolson opened this issue 5 years ago • 2 comments

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 avatar Feb 11 '20 12:02 tpcolson

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

tpcolson avatar Feb 11 '20 12:02 tpcolson

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.

jgravois avatar Feb 12 '20 17:02 jgravois