Error to deploy the edge-developer-training-backend proxy

Hello,

last week i started the "API Desing and Fundamentals of Google Clouds Apigee" course. Now im running in many errors, i solved many but now im stock.

Im doing the "node setup" command and get:

POST https://api.enterprise.apigee.com/v1/organizations/*********************/apis?action=import&name=edg... accept: application/json accept-encoding: gzip authorization: Basic [Not shown in log] content-type: application/octet-stream [Request body contains data, not shown] [ERROR] * * * * * * * * * * * This deployment could have failed for a variety of reasons. * * * * * * * * * * * [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.562 s [INFO] Finished at: 2020-07-06T10:47:48+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6:deploy (deploy-bundle) on project edge-developer-training-idp: : MojoExecutionException: Unknown host api.enterprise.apigee.com -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException (node:140476) UnhandledPromiseRejectionWarning: #<Object> (node:140476) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:140476) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [INFO] ============= Reading the config file located at ================ C:\*****\*****\*****\setup\edge-developer-training-backend\config.json

Please help me i dont know how to go on.

Solved Solved
0 9 159
1 ACCEPTED SOLUTION

Looks like the machine or the network you are connect to does not have access to api.enterprise.apigee.com due to some firewall or proxy. Can you try pinging "api.enterprise.apigee.com" from that network or run the setup script without a VPN or connecting to another network other than your corporate?

View solution in original post

9 REPLIES 9

Looks like the machine or the network you are connect to does not have access to api.enterprise.apigee.com due to some firewall or proxy. Can you try pinging "api.enterprise.apigee.com" from that network or run the setup script without a VPN or connecting to another network other than your corporate?

Hi, you are right, it is a proxy issue. I thought I had everything set up right, where could I have forgotten something?

Will you be able to run it with another network that does not go through your corporate firewall ?

In your machine, try setting this in your terminal

export MAVEN_OPTS=-Dhttp.proxyHost=<<proxyHost>> -Dhttp.proxyPort=<<proxyPort>> -Dhttps.proxyHost=<<proxyHost>> -Dhttps.proxyPort=<<proxyPort>>

update the proxyhost and proxy port that is configured in your browser and then in the same terminal - try running the setup again. See if that works

If i run this code it throws me this error:

[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-readable POM C:\******\*******\******\setup\pom.xml: no more data available - expected end tag </project> to close start tag <project> from line 2, parser stopped on END_TAG seen ...</build>\r\n</project>\r\n... @30:1 @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project (C:\****\*******\*****\setup\pom.xml) has 1 error [ERROR] Non-readable POM C:\*********\*****\****\setup\pom.xml: no more data available - expected end tag </project> to close start tag <project> from line 2, parser stopped on END_TAG seen ...</build>\r\n</project>\r\n... @30:1 [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

something to do with the Maven settings. Revert it back

Yes, it works if i am logged out of my VPN

Once the setup is done - you dont need to do it again. If you got it to work, then you are good to go ! Hopefully you are unblocked

Got it!
Thanks