Geting 504 gateway time out if using Target Server configuration

Not applicable

I have define a target server in configuration

Name :- Demo

Host:- xxxx.xxxx.com Port : 443 we are using https. and at Proxy end point we are using load Load Balancer to access our service.

That is not working getting 504 Gateway time out error. but if we are using URL directly in target endpoint its works fine.

Please help me in this issue.

Solved Solved
0 4 666
1 ACCEPTED SOLUTION

@Madhav

Have you enable SSL property to true in your <HTTPTargetConnection> when you are using Target server.
<SSLInfo> <Enabled>true</Enabled></SSLInfo>

View solution in original post

4 REPLIES 4

@Madhav

Have you enable SSL property to true in your <HTTPTargetConnection> when you are using Target server.
<SSLInfo> <Enabled>true</Enabled></SSLInfo>

It is working but my Service End Point is https and request going to http i need to call https.

@Madhav

During trace option you might have seen the http instead of https.

I believe its a bug with edge,While using target server in trace its showing as http but actual call is made via https as you have enable ssl property.

@Madhav

Probably you created target server using edge UI. By default when target server is created using edge ui, ssl is disabled and the calls will end up on an http endpoint. Use the management API to create the target server and make enabled attribute inside SSLInfo attribute as true

http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_name%7D...