Ankit
Ankit

Reputation: 2246

debug rest call in wso2 api manager

I am connecting rest api call with wso2 api manager. I followed the steps from wso2 site

I am able to connect with rest api on my computer but following same procedure on another computer returns "Error: No Response from Server"

I had also configured the files as described here

Does anybody knows how to debug what is going wrong there ?

Upvotes: 0

Views: 619

Answers (1)

Chamalee De Silva
Chamalee De Silva

Reputation: 695

You can enable wirelogs and headers in API Manager to analyze the request response flow.

  1. Open log4j.properties file in /repository/conf directory.
  2. Uncomment the following loggers.

    log4j.logger.org.apache.synapse.transport.http.headers=DEBUG log4j.logger.org.apache.synapse.transport.http.wire=DEBUG

  3. Save the changes and Restart the Server

  4. Invoke the API.

Regarding your "Error: No Response from Server" response, other than the CORS issue, this can occur due to browser certificate issue as well.

Therefore, first check whether you can invoke the same API using a rest client like curl,

if yes go to your browser, accept the certificate for the gateway URL and try out invoking the API again.

Upvotes: 3

Related Questions