why my rest interface return "{ "error": "no response from server" }" after configed by api manager

1.9k views Asked by At

I design a new api with api manager. when I invoked it in api console, it prompted the msg as the belowling jpg.

look at the jpg ,plz, Those is the following logs after do curl as the folloing

curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer 8dfb0253-5906-3ee5-ab28-cd53bc190ddc' 'http://172.17.0.1:8280/V2.0.0/common/test/test'

enter image description here

enter image description here enter image description here

1

There are 1 answers

2
Jenananthan On

Possible reasons for the issue and solutions

  1. Gatway uses https and self singed certificated. Type the gateway url in browser and accept the certificate then try with api console
  2. CORS issue. Enable CORS as described in doc https://docs.wso2.com/display/AM200/Key+Concepts#KeyConcepts-Cross-originresourcesharing