I have the mule config for http proxy as follows:
<pattern:http-proxy name="xxx-service-http-proxy">
<http:inbound-endpoint address="http://localhost:8080" />
<http:outbound-endpoint host="localhost" port="8589" />
</pattern:http-proxy>
now When I hit http://localhost:8080/swagger-ui.html. I get the message
Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://localhost:8589swagger-ui.html
But when I hit http://localhost:8080//swagger-ui.html. Everything works as expected (needs double slashes). Can anyone point me out where I made a mistake.
The documentation from the Http proxy mentions nothing about that: https://docs.mulesoft.com/mule-runtime/3.5/http-proxy-pattern
I think the issue arises as there is no base path at all to append to.
Try to add the explicit path parameter to the outbound:
Or use the URL style for the outbound: