2
votes

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
why there is on reply??Mike
can you try the same cur and get the result?Thusitha Thilina Dayaratne
in the image you can see a curl command that API manager sends. So you can directly call it and check if you get the intended resultsThusitha Thilina Dayaratne
plz ,look at the above log image.Mike
According to ur curl command output the resource doesn't exist. Can you check are you using the correct url?Thusitha Thilina Dayaratne

1 Answers

2
votes

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