apigee / api-platform-samples

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

invoke.sh in all the sample has issue while hitting from curl. #91

Open ravindrasingh22 opened 6 years ago

ravindrasingh22 commented 6 years ago

Hi, I have successfully configured the setup, provisioned the sample all but whenever I run ./invoke.sh from any environment the curl throw an error.

`curl http://itravindrasingh-eval-test.https://itravindrasingh-eval-test.apigee.net/v1/learn-edge/json?apikey=dLKTcVdGoSqVnD3JsBpBuw75F091Syy3

Response:
curl: (6) Could not resolve host: itravindrasingh-eval-test.https`

Because in invoke.sh file the $org-$env.$api_domain are getting concatenation which seems incorrect or maybe it is apigeetool configuration issue with the console.

shubhamkumartyagi commented 5 years ago

Hi,

You need to check the configurations in "setenv.sh" which forms the URL for the curl request.

org="yourID-eval" | you can check this by logging-in to your account username="emailID" | your login account id url="https://api.enterprise.apigee.com" env="test" | test or prod
api_domain="apigee.net"

Cheers, Shubham