Re: I keep on getting 502 Bad Gateway: Registered endpoint failed to handle the request.


Lucas Reginato
 

Hi Ushani,

Please try the following:

1) Once your application is deployed, execute:

a) cf create-route pcfdev-space tcp.local.pcfdev.io --random-port
Creating route tcp.local.pcfdev.io for org pcfdev-org / space pcfdev-space
as admin...
OK
Route tcp.local.pcfdev.io:61015 has been created

b) cf map-route <app-name> tcp.local.pcfdev.io --port 61015

2) Access your application https://<url to the app>:61015.
You should see your certificate (I am assuming you have configured one).

In my example, the port allocated was 61015.
But it could be a different port in your case.
So please check the port that will be allocated by create-route command.

Hope it helps.
:)

Thanks,

-Lucas Reginato


On Wed, Sep 13, 2017 at 2:01 PM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

Log without /carbon

2017-09-13T14:59:23.865+05:30 [RTR/0] [OUT] is530.local.pcfdev.io -
[2017-09-13T09:29:23.864+0000] "GET / HTTP/1.1" 502 0 67 "-" "Mozilla/5.0
(X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0" "
192.168.11.1:60056" "10.0.2.15:60055" x_forwarded_for:"-"
x_forwarded_proto:"https" vcap_request_id:"57887b42-bda3-41fd-7d4d-0617df1ef8e4"
response_time:0.000888627 app_id:"faf5b9d6-a48f-499e-a5f8-35286c921714"
app_index:"0"
2017-09-13T15:11:31.054+05:30 [RTR/0] [OUT] is530.local.pcfdev.io -
[2017-09-13T09:41:31.053+0000] "GET / HTTP/1.1" 502 0 67 "-" "Mozilla/5.0
(X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0" "
192.168.11.1:60150" "10.0.2.15:60055" x_forwarded_for:"-"
x_forwarded_proto:"https" vcap_request_id:"dabe350e-e64e-47e0-5d35-b2f171f3846b"
response_time:0.001140777 app_id:"faf5b9d6-a48f-499e-a5f8-35286c921714"
app_index:"0"
2017-09-13T15:13:28.399+05:30 [RTR/0] [OUT] is530.local.pcfdev.io -
[2017-09-13T09:43:28.397+0000] "GET / HTTP/1.1" 502 0 67 "-" "Mozilla/5.0
(X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0" "
192.168.11.1:60350" "10.0.2.15:60055" x_forwarded_for:"-"
x_forwarded_proto:"https" vcap_request_id:"910e4607-6d15-41a9-5fa6-a217a2622fb6"
response_time:0.001524459 app_id:"faf5b9d6-a48f-499e-a5f8-35286c921714"
app_index:"0"


--
Lucas Reginato

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.