[英]CloudHub Deployment 502 Bad Gateway We couldn't find any Cloudhub application listening on this API
我有 mule 應用程序版本 3.8.5,當我運行工作室時,它已成功部署。 Then I created a zip package using mvn package command then the package is deployed successfully in cloud hub space, when I accessing the application URL I am getting the following error in the browser "502 Bad Gateway We couldn't find any Cloudhub application listening on這個 API"
請在此處找到 HTTP_Listener_Configuration
<http:listener-config name="HTTP_Listener_Configuration" protocol="HTTPS" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration">
</http:listener-config>
<http:request-config name="app1" protocol="${app1.protocol}" host="${app1.host}" port="${app1.port}" basePath="/center" doc:name="HTTP Request Configuration">
<http:basic-authentication username="${app1.username}" password="${app1.password}" preemptive="true"/>
<tls:context enabledProtocols="TLSv1.2">
<tls:trust-store path="truststore.ts" password="mule" type="jks" insecure="true"/>
</tls:context>
</http:request-config>
<flow name="configurationsFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/center" allowedMethods="GET" doc:name="HTTP"/>
<set-payload value="welocme" doc:name="Set Payload"/>
<response>
<logger level="INFO" doc:name="Logger"/>
</response>
</flow>
請讓我知道是否有任何要求。
問題是 HTTP 偵聽器正在偵聽端口 8081,但它配置為 HTTPS。 CloudHub 負載均衡器希望它在端口 8082 中偵聽 HTTPS。 CloudHub 最好使用預定義的屬性 ${https.port}。 對於本地部署,您需要在 mule-app.properties 中定義它才能工作。 CloudHub 將覆蓋它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.