2016-01-23 126 views
1

我在WSO2 API Manager上发布了一个测试API作为原型API。但是,当我试图卷曲API端点我得到波纹错误Wso2 API Manager ERROR_CODE = 101508,发件人错误

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相同的错误也是如此。

+0

错误代码建议连接超时。你的后端是什么? – harsha89

+0

后端为http://api.mydubaitrip.com/weathers – Manoj

+0

您可以在API Manager中启用HTTP线路日志,方法是取消注释库中的log4j.logger.org.apache.synapse.transport.http.wire = DEBUG行/conf/log4j.properties文件。您可以看到API Manager如何将请求发送到后端,响应如何。 –

回答

1

存在导致此行为的现有问题[]。但是,您可以按照以下方式创建自定义序列,并在管理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

相关问题