这是indexloc提供的服务,不要输入任何密码
Skip to content

When deploying a proxy, if the token expires during the wait, it seems to loop unnecessarily #218

@DinoChiesa

Description

@DinoChiesa

Example:

$ 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions