Reputation: 2484
when invoking API from the Swagger console in the Devportal I am faced with a problem
TypeError: Failed to fetch Issues
But, When I invoke with Curl in -insecure, it successfully works, so what is the problem with wagger console in the Devportal?
this is browser console output :
But in postman & Curl after remove port number, it works as following :
Upvotes: 0
Views: 428
Reputation: 2218
As per the shared cURL outputs, when you are trying to invoke the API with :8243
, it is getting Connection Refused
. Therefore, can you try updating the Gateway Environment configuration without the port and try out the scenario?
Given below is the TOML configuration without the port mentioned for the https_endpoint
[[apim.gateway.environment]]
name = "Default"
...
http_endpoint = "http://localhost:${http.nio.port}"
# remove the port section
https_endpoint = "https://gw.am.wso2.com"
...
Once updating the configurations, save and restart the server and try out the scenario.
Upvotes: 2