502错误的网关:注册的端点无法处理请求:在Cloud Foundry上

时间:2019-05-20 12:03:25

标签: cloudfoundry http-status-codes bad-request bad-gateway

将我的应用程序推送到Cloud Foundry(推送成功)之后,我回来了(通过使用url):

502 Bad Gateway: Registered endpoint failed to handle the request.

我的日志:

 2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20 11:51:52.780  INFO 6 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput    : Sending data to data analytics service...
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20 11:51:52.782  INFO 6 --- [pool-3-thread-1] ContainerTrustManagerFactory$PKIXFactory : Adding System Trust Manager
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20 11:51:52.784 ERROR 6 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput    : Tag data could not be posted to analytics service: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused (Connection refused)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused (Connection refused)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at 
...
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR Caused by: java.net.ConnectException: Connection refused (Connection refused)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at java.net.PlainSocketImpl.socketConnect(Native Method)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at java.net.Socket.connect(Socket.java:589)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
   2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR     ... 33 more

我了解我无法连接到127.0.0.1:5000。

在本地启动我的应用程序时,我遇到相同的错误,但可以访问我的应用程序:

我的本​​地日志:

2019-05-20 11:32:08.700  INFO 14948 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput    : Sending data to data analytics service...
2019-05-20 11:32:09.708 ERROR 14948 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput    : Tag data could not be posted to analytics service: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused: connect
org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused: connect

...

有什么想法我想念的吗?

0 个答案:

没有答案