redhat-gpe / rhte2018_api_mgmt_and_service_mesh

2 stars 3 forks source link

[Lab2] Curl command might needs to be updated #35

Closed d-jana closed 5 years ago

d-jana commented 5 years ago

In "Lab2 > 2.2.6. Test Catalog Business Service > 2. From the terminal, execute the following:", curl command is not working. Error is showing like below:

[djana-redhat.com@clientvm 1 ~]$ curl -v -k `echo "https://"$(oc get route/catalog-prod-apicast-$OCP_USERNAME -o template --template {{.spec.host}})"/products?user_key=$CATALOG_USER_KEY"`
Error from server (NotFound): routes.route.openshift.io "catalog-prod-apicast-developer" not found
* Could not resolve host: https; Unknown error
* Closing connection 0
curl: (6) Could not resolve host: https; Unknown error

It just missed "-n $GW_PROJECT" parameter. It works with below command:

curl -v -k `echo "https://"$(oc get route/catalog-prod-apicast-$OCP_USERNAME -n $GW_PROJECT -o template --template {{.spec.host}})"/products?user_key=$CATALOG_USER_KEY"`

or

curl -v -k `echo "https://"$(oc get route catalog-prod-apicast-$OCP_USERNAME -n $GW_PROJECT --template {{.spec.host}})"/products?user_key=$CATALOG_USER_KEY"`

Console log: CurlErrorAPICast.txt

Can you please check once?

jbride commented 5 years ago

fixed several months ago.