API Console Issue

人走茶凉 提交于 2019-12-11 09:54:58

问题


I've been using WSO2 API Manager 1.9.1 for the past month on a static IP and we liked it enough to put it on Azure behind a full qualified domain name. As we are still only using for internal purposes, we shut the VM down during off hours to save money. Our Azure setup does not guarantee the same IP address each time the VM restarts. The FQDN allows us to always reach https://api.mydomain.com regardless of what happens with the VM IP.

I updated the appropriate config files to the FQDN and everything seems to be working well. However! The one issue I have and cannot seem to resolve is calling APIs from the API consoloe. No matter what I do, I get a response as below

Response Body no content Response Code 0 Response Headers { "error": "no response from server" }

Mysteriously, I can successfully make the same calls from command line or SOAPUI. So it's something unique about the API Console. I can't seem to find anything useful in the logs or googling. I do see a recurring error but it's not very clear or even complete (seems to cut off).

[2015-11-17 21:33:21,768] ERROR - AsyncDataPublisher Reconnection failed for

Happy to provide further inputs / info. Any suggestions on root cause or where to look is appreciated. Thanks in advance for your help!

Edit#1 - adding screenshots from chrome


回答1:


The API Console may not be giving you response due to following issues

  1. If you are using https, you have to type the gateway url in browser and accept it before invoke the API from the API Console (This case there is no signed certificate in the gateway)

  2. CORS issue which may due to your domain is not in access allow origins response of Options call

  3. If you create a API which having https backend. You have to import endpoint SSL certificate to client-trustore.jks



来源:https://stackoverflow.com/questions/33767675/api-console-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!