Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Sample XML Deploy failed with status 400

Not applicable

Hi I am trying out the tutorial at

http://apigee.com/docs/api-services/tutorials/part-3-use-xml-samples-and-deployment-tools . At step 2.4 my deployment fails with status 400.

Here is the log:

Enter your password for the Apigee Enterprise organization zzz, followed by[ENTER]:
Deploying to test on https://api.enterprise.apigee.com using zzz@zzz.com and zzz
Writing ../conditional-policy\deploy.sh to .\deploy.sh
Writing ../conditional-policy\invoke.sh to .\invoke.sh
Writing ../conditional-policy\README.md to .\README.md
Writing ../conditional-policy\apiproxy\conditional-policy.xml to apiproxy\conditional-policy.xml
Writing ../conditional-policy\apiproxy\policies\Timer.xml to apiproxy\policies\Timer.xml
Writing ../conditional-policy\apiproxy\proxies\default.xml to apiproxy\proxies\default.xml

Writing ../conditional-policy\apiproxy\resources\py\timer to apiproxy\resources\py\timer
Writing ../conditional-policy\apiproxy\targets\default.xml to apiproxy\targets\default.xml

Imported new proxy version 3
Deploy failed with status 400:

If 'State: deployed', then your API Proxy is ready to be invoked.
Run 'invoke.sh'

I can manually deploy the proxy from the Management UI, but I am not able to figure out what is going wrong with me running the scripts.

Please help.

Solved Solved
0 4 387
1 ACCEPTED SOLUTION

I just took a look at this tutorial, and made a change to step 2.4 from:

$ deploy.sh

to:

$ sh deploy.sh

Please see if that helps.

Stephen

View solution in original post

4 REPLIES 4