$ apigeecli apis deploy --name $NAME --org $ORG --rev 5 --env eval --ovr --wait
{
"environment": "eval",
"apiProxy": "name-of-apiproxy",
"revision": "5",
"deployStartTime": "1687575369325"
}
Checking deployment status in 10 seconds
Proxy deployment status is: PROGRESSING. Waiting 10 seconds.
Proxy deployment status is: PROGRESSING. Waiting 10 seconds.
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
....
Seems like it should handle the 401 during wait, and just failfast.