简体   繁体   English

Wso2 apim 存储中 api 调用的“TypeError: failed to fetch”

[英]“TypeError: failed to fetch” for api calls in Wso2 apim store

I have an nodejs api which gives a valid response in postman/browser.我有一个 nodejs api,它在邮递员/浏览器中提供有效的响应。 Tried to add the api in WSO2 api manager and followed the steps in the tutorials to succesfully publish the api in API Manager.尝试在 WSO2 api 管理器中添加 api 并按照教程中的步骤在 API 管理器中成功发布 api。 But when created an product and using an auth token to call the created API getting the failed to fetch error as below:但是当创建一个产品并使用身份验证令牌调用创建的 API 时,获取失败的错误如下: 在此处输入图片说明

Have tried enabling cors which didnt solve the issue.已尝试启用未能解决问题的 cors。 The api from the apim store isnt hitting the node server api.来自 apim 商店的 api 没有访问节点服务器 api。

Copy and run that URL in a browser tab and accept the certificate.在浏览器选项卡中复制并运行该 URL 并接受证书。 Then try again.然后再试一次。 It should work.它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM