Open yannicknghiemxuan opened 2 years ago
@crenshaw-dev . Can you assign the issue to me, wants to give it a try
Any progress with this?
It seems that server side is not reporting authentication errors to client side: https://github.com/argoproj/argo-cd/blob/master/server/application/application.go#L1220:L1221
Once the token has grown old, sending an error to the stream would allow client to fail the call and user would be able to retry with a refreshed token.
Checklist:
argocd version
.Describe the bug
"argocd app wait" hangs when the auth token expires during its execution.
For example if you have a rollout in progress that takes 10 minutes to complete and your token is valid for 1 minute, then the token will expire during the "argocd app wait" execution and the command will hang forever (never returns).
To Reproduce
Example to reproduce the issue:
Expected behavior
If the token expires while the command is running, then it should interrupt its execution and return an error.
Screenshots
Version
ArgoCD cli Versions impacted: at least 2.3.4 and 2.3.3 We never hit the issue with 2.1.3, and we haven't tried the versions in between.
Logs