I have try below to deploy using apigee api , My account is free account.
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -u matthias.y.lau@accenture.com:XXXXX "https://api.enterprise.apigee.com/v1/organizations/myclau/environments/test/apis/helloworldTesting/revisions/1/deployments?override=true"
but it show:
{
"aPIProxy":"helloworldTesting",
"configuration":{
"basePath":"/",
"steps":[
]
},
"environment":"test",
"name":"1",
"organization":"myclau",
"revision":"1",
"server":[
{
"error":"Call timed out; either server is down or server is not reachable",
"status":"error",
"type":[
"message-processor"
],
"uUID":"64485043-ef5f-4bad-a701-9d2554daaa66"
},
{
"error":"Call timed out; either server is down or server is not reachable",
"status":"error",
"type":[
"message-processor"
],
"uUID":"88c660c8-5f81-444c-b8d1-37cea988b56a"
},
{
"status":"deployed",
"type":[
"router"
],
"uUID":"77245c4f-3e53-47ac-9b03-202a39073b5e"
},
{
"status":"deployed",
"type":[
"router"
],
"uUID":"418e82d5-30e2-4215-b02b-d37a1e437c1f"
}
],
"state":"error"
}
But I can deploy through apigee edge with GUI.
How to solve this?
---------------------------------------------------------------------------
I am trying to provide more information I use -v to catch more info:
REQUEST
* Trying 54.178.240.81...
* TCP_NODELAY set
* Connected to api.enterprise.apigee.com (54.178.240.81) port 443 (#0)
* ALPN, offering h2 * ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* TLSv1.2 (OUT), TLS header, Certificate Status (22)
* TLSv1.2 (OUT), TLS handshake, Client hello (1)
* TLSv1.2 (IN), TLS handshake, Server hello (2)
* TLSv1.2 (IN), TLS handshake, Certificate (11)
* TLSv1.2 (IN), TLS handshake, Server key exchange (12)
* TLSv1.2 (IN), TLS handshake, Server finished (14)
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16)
* TLSv1.2 (OUT), TLS change cipher, Client hello (1)
* TLSv1.2 (OUT), TLS handshake, Finished (20)
* TLSv1.2 (IN), TLS change cipher, Client hello (1)
* TLSv1.2 (IN), TLS handshake, Finished (20)
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: OU=Domain Control Validated; CN=api.enterprise.apigee.com
* start date: Sep 27 22:23:38 2016 GMT
* expire date: Nov 14 06:09:54 2019 GMT
* issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certs.godaddy.com/repository/; CN=Go Daddy Secure Certificate Authority - G2
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
> POST /v1/organizations/myclau/environments/test/apis/helloworldTesting/revisions/1/deployments?override=true&delay=40
HTTP/1.1
> Host: api.enterprise.apigee.com
> User-Agent: curl/7.51.0 > Accept: */*
> Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Content-Type: application/x-www-form-urlencoded
Respond
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: origin, x-requested-with, accept
< Access-Control-Allow-Methods: GET, PUT, POST, DELETE
< Access-Control-Allow-Origin: *
< Access-Control-Max-Age: 3628800 < Content-Type: application/json
< Date: Thu, 29 Dec 2016 01:52:29 GMT
< Server: Apigee LB
< Content-Length: 866
< Connection: keep-alive
<
Payload
{ "aPIProxy" : "helloworldTesting", "configuration" :
{ "basePath" : "/", "steps" : [ ] },
"environment" : "test",
"name" : "1",
"organization" : "myclau",
"revision" : "1",
"server" : [
{ "error" : "Call timed out; either server is down or server is not reachable", "status" : "error", "type" : [ "message-processor" ], "uUID" : "64485043-ef5f-4bad-a701-9d2554daaa66" },
{ "error" : "Call timed out; either server is down or server is not reachable", "status" : "error", "type" : [ "message-processor" ], "uUID" : "88c660c8-5f81-444c-b8d1-37cea988b56a" },
{ "status" : "deployed", "type" : [ "router" ], "uUID" : "77245c4f-3e53-47ac-9b03-202a39073b5e" },
{ "status" : "deployed", "type" : [ "router" ], "uUID" : "418e82d5-30e2-4215-b02b-d37a1e437c1f" }
],
"state" : "error"
* Connection #0 to host api.enterprise.apigee.com left intact
}
Hi @Lau Yiu Ching,
Try undeploying explicitly and check if the deployment api works as expected.
That is typically a transient error.
Can you retry?
I have try these:
curl -k -X DELETE --header "Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxx" "https://api.enterprise.apigee.com/v1/organizations/myclau/environments/test/apis/helloworldTesting/revisions/1/deployments"
curl -k -X POST --header "Authorization: Basic xxxxxxxxxxxxxxxxxxxx" --header "Content-Type: application/x-www-form-urlencoded" "https://api.enterprise.apigee.com/v1/organizations/myclau/environments/test/apis/helloworldTesting/revisions/1/deployments?override=true&delay=40"
The Result is:
UNDEPLOY
{
"aPIProxy":"helloworldTesting",
"configuration":{
"basePath":"/",
"steps":[
]
},
"environment":"test",
"name":"1",
"organization":"myclau",
"revision":"1",
"server":[
{
"status":"undeployed",
"type":[
"message-processor"
],
"uUID":"64485043-ef5f-4bad-a701-9d2554daaa66"
},
{
"status":"undeployed",
"type":[
"message-processor"
],
"uUID":"88c660c8-5f81-444c-b8d1-37cea988b56a"
},
{
"status":"undeployed",
"type":[
"router"
],
"uUID":"77245c4f-3e53-47ac-9b03-202a39073b5e"
},
{
"status":"undeployed",
"type":[
"router"
],
"uUID":"418e82d5-30e2-4215-b02b-d37a1e437c1f"
}
],
"state":"undeployed"
}
DEPLOY
{
"aPIProxy":"helloworldTesting",
"configuration":{
"basePath":"/",
"steps":[
]
},
"environment":"test",
"name":"1",
"organization":"myclau",
"revision":"1",
"server":[
{
"error":"Call timed out; either server is down or server is not reachable",
"status":"error",
"type":[
"message-processor"
],
"uUID":"64485043-ef5f-4bad-a701-9d2554daaa66"
},
{
"error":"Call timed out; either server is down or server is not reachable",
"status":"error",
"type":[
"message-processor"
],
"uUID":"88c660c8-5f81-444c-b8d1-37cea988b56a"
},
{
"status":"deployed",
"type":[
"router"
],
"uUID":"77245c4f-3e53-47ac-9b03-202a39073b5e"
},
{
"status":"deployed",
"type":[
"router"
],
"uUID":"418e82d5-30e2-4215-b02b-d37a1e437c1f"
}
],
"state":"error"
}
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |