Wso2 API 管理器 ERROR_CODE = 101508,发送方错误



我在WSO2 API Manager上发布了一个测试API作为原型API。但是当我尝试卷曲 API 端点时,我收到以下错误

curl http://localhost:8280/weather2/v1.0.0

<am:fault xmlns:am="http://wso2.org/apimanager">
   <am:code>101508</am:code>
   <am:type>Status report</am:type>
   <am:message>Runtime Error</am:message>
   <am:description>Error in Sender</am:description>
</am:fault>

我也在托管 API 上收到相同的错误。

存在导致此行为的问题[]。但是,您可以按如下所示创建自定义序列,并将其添加为管理 API 阶段的顺序。问题是,如果没有以下顺序,主机标头将作为该端点不支持的Host: api.mydubaitrip.com:80进入端点。

<sequence xmlns="http://ws.apache.org/ns/synapse" name="remove_port_In"> 
      <property name="REQUEST_HOST_HEADER" value="api.mydubaitrip.com" scope="axis2"/>
</sequence>

[1] https://wso2.org/jira/browse/APIMANAGER-4429

相关内容

最新更新