Skip to main content

Hello,

Its seems old question but I've tried everything from myside (obviously not). I did the configuration like exactly with the documentation.

https://docs.mulesoft.com/mule-runtime/latest/build-an-https-service#build-an-https-service

 

But when I want to access my endpoint with Postman, It's gives an error 502 BAD GATEWAY. This is my simple mule configuration below;

<?xml version="1.0" encoding="UTF-8"?>

 

<mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:tls="http://www.mulesoft.org/schema/mule/tls"

xmlns:http="http://www.mulesoft.org/schema/mule/http"

xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd

http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd

http://www.mulesoft.org/schema/mule/tls http://www.mulesoft.org/schema/mule/tls/current/mule-tls.xsd

http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">

<http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="de252a59-c3f7-4537-a561-902bed97a1a5" >

<http:listener-connection protocol="HTTPS" host="0.0.0.0" port="${https.port}" >

<tls:context enabledProtocols="TLSv1.1">

<tls:key-store path="keystore.jks" keyPassword="password" password="password" />

</tls:context>

</http:listener-connection>

</http:listener-config>

<configuration-properties doc:name="Configuration properties" doc:id="8fff4919-06a8-4d8a-892e-faa71c78f52c" file="default.yaml" />

<flow name="https-testingFlow" doc:id="9a57b836-06fd-4775-afcf-8b7f3be5fb45" >

<http:listener doc:name="Listener" doc:id="e04e4aef-d8d8-4b7b-81f3-fab53d88e7e8" config-ref="HTTP_Listener_config" path="/v1"/>

<ee:transform doc:name="Transform Message" doc:id="8660e2fa-7960-4cb5-80fc-539b04ceb9ef" >

<ee:message >

<ee:set-payload ><![CDATA[%dw 2.0

output application/json

---

{

"message":"https working..."

}]]></ee:set-payload>

</ee:message>

</ee:transform>

</flow>

</mule>

I've also default.yaml file end includes;

https:

port: "8082"

I didn't figure out the problem for 2 days. Some help would be great.

0/9000