apigee / apigee-deploy-maven-plugin

Apache License 2.0
80 stars 169 forks source link

Hybrid/ApigeeX - Inconsistent error response #153

Closed ssvaidyanathan closed 3 years ago

ssvaidyanathan commented 3 years ago

Inconsistent error between curl and the plugin

{
    "error": {
        "code": 400,
        "message": "deployment validations failed",
        "status": "FAILED_PRECONDITION",
        "details": [
            {
                "@type": "type.googleapis.com/google.rpc.PreconditionFailure",
                "violations": [
                    {
                        "type": "CONFLICTING_DEPLOYMENT",
                        "subject": "organizations/ssv-apigee-ngsaas-project2/apis/currency-ssvaidyanathanv1/revisions/1",
                        "description": "Existing deployment of \"organizations/ssv-apigee-ngsaas-project2/apis/currency-ssvaidyanathanv1/revisions/1\" contains conflicting base paths: [/currency/ssvaidyanathanv1/logs /currency/ssvaidyanathanv1]."
                    }
                ]
            },
            {
                "@type": "type.googleapis.com/google.rpc.RequestInfo",
                "requestId": "14334042304808244668"
            }
        ]
    }
}

but in the plugin we only get

{
  "error": {
    "code": 400,
    "message": "deployment validations failed",
    "errors": [
      {
        "message": "deployment validations failed",
        "domain": "global",
        "reason": "failedPrecondition"
      }
    ],
    "status": "FAILED_PRECONDITION"
  }
}
ssvaidyanathan commented 3 years ago

Fix in v.2.1.0