sdk/client/auth - KeyError: 'id_token' from _auth.py in id_token_from_refresh_token #4312
Labels
area/sdk/client
good first issue
lifecycle/frozen
status/triaged
Whether the issue has been explicitly triaged
If getting “KeyError: 'id_token'” from “File "/Users/gongyuan/miniconda3/envs/mlpipeline/lib/python3.7/site-packages/kfp/_auth.py", line 192, in id_token_from_refresh_token
return (str(json.loads(res.text)[u"id_token"]))
The request to get id token from refresh token failed, but the client didn’t surface the underlying error message. The http response I got was
And root cause: ~/.config/kfp/credentials.json has expired. I deleted it and got a new token:
rm ~/.config/kfp/credentials.json
.Solution
pipelines/sdk/python/kfp/_auth.py
Lines 184 to 185 in 2a65eec
pipelines/sdk/python/kfp/_auth.py
Lines 191 to 192 in 2a65eec
Response.raise_for_exception
, it could be401 unauthorized
.The text was updated successfully, but these errors were encountered: