简体   繁体   中英

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM