0

I want to invoke my API which designed on API MANAGER. I do it as the following screenshot. But there is no correct result as the following screenshot. Before I do the above saying, I do the curl command and get correct result.

Then how can I resovle the problem?

Community
  • 1
  • 1
Mike
  • 419
  • 1
  • 6
  • 16
  • Enable the wirelog, hit the api and attach the wirelog to the question . http://mytecheye.blogspot.com/2013/09/wso2-esb-all-about-wire-logs.html – Jenananthan Dec 28 '16 at 12:28
  • why the URL can be invoked with the curl command but did not in google's postman. – Mike Dec 29 '16 at 02:20
  • if you enable wirelog, it will help to identify whether request hits the server or not. if request does not hit the server it is and issue with the postman. thus you can isolate the problem first. – Jenananthan Dec 29 '16 at 05:02
  • Try opening the link in the browser to see if it's a ssl error. – Gayan Weerakutti Dec 29 '16 at 14:37
  • I opened it in the browser and the browser appeared ERR_CONNECTION_REFUSED. I doubt if the url could be invoked by HttpClient – Mike Dec 29 '16 at 14:42
  • Possible duplicate of [why The API could not be invoked by postman or httpclient?](http://stackoverflow.com/questions/41390291/why-the-api-could-not-be-invoked-by-postman-or-httpclient) – Bee Dec 30 '16 at 14:15
  • you are right ... – Mike Dec 30 '16 at 14:19
  • Then how can I invoke the API with httpclient? @Bhathiya I Use the 214 ip address ,there is error logs:org.apache.http.conn.HttpHostConnectException: Connect to 124.251.62.214:8243 [/124.251.62.214] failed: Connection refused – Mike Jan 06 '17 at 09:51

1 Answers1

0

Here's how you do call tracing and troubleshooting in API Cloud: http://wso2.com/blogs/cloud/trace-api-calls-and-responses/

DSotnikov
  • 634
  • 3
  • 10