Reputation: 483
I publised one test API on WSO2 API Manager as prototype API. But When I am trying to curl the API endpoint I am getting bellow error
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>
I am getting the same error for Managed API as well.
Upvotes: 1
Views: 9502
Reputation: 357
There is existing issue which cause this behavior[]. However you can create a custom sequence as below and add it as a insequencefor the API in manage API phase. The issue was, without below sequence the host header going to endpoint asHost: api.mydubaitrip.com:80
which is not supported by that endpoint.
<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
Upvotes: 1