I tried to install node dependencies on my Api Proxy. I specified the url, the command (command=install) and my basic authentication
http://apigee.com/docs/management/apis/post/organi...
But for some reason, I received a Gateway Timeout on chrome console.
Failed to load resource: the server responded with a status of 504 (Gateway Timeout) npm-0:1 XMLHttpRequest cannot load https://apiconsole-prod.apigee.net/smartdocs/v1/s.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://apigee.com' is therefore not allowed access. The response had HTTP status code 504.
Anyone has faced with this situation?
Hi @Oscar Fimbres,
Just curious to know if you resolved this problem? I just noticed that there haven't been any responses. Are you able to do "npm install" in the root directory of your Node app locally, and does that work? I usually make sure that there's a package.json deployed in the apiproxy/resources/node directory. The API will install the modules listed in that file. Here's an example package.json that works when I run the npm API for a Node proxy deployed on Edge:
{ "name": "data-manager", "version": "0.0.1", "description": "Data manager layer for streetcarts.", "main": "server.js", "dependencies": { "async": "^1.5.0", "body-parser": "^1.14.1", "cors": "^2.5.1", "express": "^4.13.3", "request": "^2.65.0" }, "devDependencies": {}, "scripts": { "start": "node server.js" }, "author": "Steve Traut", "license": "ISC" }
User | Count |
---|---|
5 | |
2 | |
1 | |
1 | |
1 |