TypeError: Failed to fetch Issues when invoking API from the Swagger console in the Devportal

TypeError: Failed to fetch Issues when invoking API from the Swagger console in the Devportal

在 Devportal 中从 Swagger 控制台调用 API 时我遇到了问题

TypeError: Failed to fetch Issues

但是,当我在 -insecure 中使用 Curl 调用时,它成功运行,那么 Devportal 中的 wagger 控制台有什么问题? 这是浏览器控制台输出:

但是在 postman & Curl 中去掉端口号后,它的工作原理如下:

根据共享的 cURL 输出,当您尝试使用 :8243 调用 API 时,它会得到 Connection Refused。因此,您可以尝试在没有端口的情况下更新网关环境配置并尝试该场景吗?

下面给出的是没有为 https_endpoint

提到的端口的 TOML 配置
[[apim.gateway.environment]]
name = "Default"
...
http_endpoint = "http://localhost:${http.nio.port}"

# remove the port section
https_endpoint = "https://gw.am.wso2.com"
...

更新配置后,保存并重新启动服务器并尝试场景。