Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wso2 API管理器错误\u代码=101508,发送方错误_Wso2_Wso2 Am - Fatal编程技术网

Wso2 API管理器错误\u代码=101508,发送方错误

Wso2 API管理器错误\u代码=101508,发送方错误,wso2,wso2-am,Wso2,Wso2 Am,我在WSO2 API管理器上发布了一个测试API作为原型API。但是当我试图卷曲API端点时,我得到了下面的错误 curlhttp://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> <

我在WSO2 API管理器上发布了一个测试API作为原型API。但是当我试图卷曲API端点时,我得到了下面的错误

curlhttp://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>

101508
状态报告
运行时错误
发送方错误

对于托管API,我也收到了相同的错误。

存在导致此行为的问题[]。但是,您可以创建一个自定义序列,如下所示,并在管理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]

错误代码表明连接超时。后端是什么?后端是您可以在API管理器中启用HTTP wire日志,方法是在repository/conf/log4j.properties文件中取消注释
log4j.logger.org.apache.synapse.transport.HTTP.wire=DEBUG
line。您可以看到API管理器如何将请求发送到后端,响应是什么。