apigee / api-platform-samples

Working samples for the Apigee API Platform
Apache License 2.0
497 stars 713 forks source link

Error at running /api-platform-samples/sample-proxies/oauth-advanced/login-app/deploy.sh #44

Closed DImuthuUpe closed 9 years ago

DImuthuUpe commented 9 years ago

When I try to run ./deploy.sh in ./api-platform-samples/sample-proxies/oauth-advanced/login-app it gives following error Error: Error: NPM install failed with status code 504

But when look at the server I can see the login-app has been created. What is the reason for that?

WWitman commented 9 years ago

I just reproduced this error message. The proxy did get uploaded, but not deployed on Edge, which isn't the desired behavior. The error is caused by a timeout on Edge when the Node.js modules are getting resolved. In the deploy.sh file, apigeetool is called with the -R option. By changing it to -U, the error goes away, and the proxy deploys properly. See the apigeetool docs here for details on these flags: https://www.npmjs.com/package/apigeetool. I'll change the script to -U to hopefully avoid this for others.