Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update deployment fail #7

Closed
ssvaidyanathan opened this issue Nov 19, 2024 · 0 comments
Closed

update deployment fail #7

ssvaidyanathan opened this issue Nov 19, 2024 · 0 comments

Comments

@ssvaidyanathan
Copy link
Collaborator

Update to Deployment is failing with the below error

************************************************************************
API Hub Deployments
************************************************************************
Fetching deployments.json file from ./ directory
Checking if Deployment - deployment1 exist
Using the bearer token
Deployment "deployment1" already exists. Updating.
Caused by: com.google.api.client.http.HttpResponseException: 403 Forbidden
POST https://apihub.googleapis.com:443/v1/projects/PROJECT_ID/locations/LOCATION/deployments/deployment1?$alt=json;enum-encoding%3Dint&updateMask=displayName,description,documentation,deploymentType,resourceUri,endpoints,slo,environment,attributes
{
  "error": {
    "code": 403,
    "message": "Permission denied on resource project PROJECT_ID.",
    "errors": [
      {
        "message": "Permission denied on resource project PROJECT_ID.",
        "domain": "global",
        "reason": "forbidden"
      }
    ],
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.Help",
        "links": [
          {
            "description": "Google developers console",
            "url": "https://console.developers.google.com"
          }
        ]
      },
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "CONSUMER_INVALID",
        "domain": "googleapis.com",
        "metadata": {
          "service": "apihub.googleapis.com",
          "consumer": "projects/PROJECT_ID"
        }
      }
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant