Error 503 when connecting HTTPS Target Server

Not applicable

Hi,

I've created a new Target Server

{
  "host": "<HOST>",
  "isEnabled": true,
  "name": "<NAME>",
  "port": 443,
  "sSLInfo": {
    "ciphers": [],
    "clientAuthEnabled": "false",
    "enabled": "true",
    "ignoreValidationErrors": true,
    "protocols": []
  }
}
When i want to connect, i'got a 503 error
{"fault":{"faultstring":"The Service is temporarily unavailable","detail":{"errorcode":"messaging.adaptors.http.flow.NoActiveTargets"}}}

In the documentation, I saw that I had to add ssIInfo.enabled=true to activate the https connection between Apigee and my API but it doesn't work.

Do you have any idea?

Julien

0 8 793
8 REPLIES 8

Not applicable

One possible scenario is that you need to specify to use a proxy server to access the target. You can do that as part of the HTTPTargetConnection configuration. Here is a snippet:

<HTTPTargetConnection>
<Properties>
<Property name="use.proxy">true</Property>
</Properties>

</HTTPTargetConnection>

Not applicable

Is this on Cloud or Private cloud?
Do you know if you have connectivity to that backend from edge and if that service is up?

pls add more details.

Not applicable

My API is on Public Cloud, I can access it directly in HTTP and HTTPS. With Apigee, I can only access it in HTTP and I get this error in HTTPS

Not applicable

Have you verified that the certificate for your host is valid?

You can run something like:

echo | openssl s_client -showcerts -servername apigee.com -connect apigee.com:443 2>/dev/null | openssl x509 -inform pem -noout -text

Pay attention to the ciphers, dates, etc. If these look good, PM me with the host name and I will verify from another org. It is possible that your org does not support SNI which is required for some configurations.

David's advice is solid.

Note that I was able to recreate this issue using https://httpbin.org. Httpbin's certificate it is missing the Organization (O) and Organization Unit (OU). It causes the same error you report.

The error you are seeing is likely due to something with the certs causing an SSL handshake issue.

Hello,

I think my cert is correct. You can test it at https://flowchart.preprod.lefebvre-sarrut.eu.

Thanks

Are you using Loadbalancer (http://docs.apigee.com/api-services/content/load-balancing-across-backend-servers) and health Monitor in the HTTP target endpoint definition to route your calls?

We recently found a bug with that and want to make sure you are not running into the same. @Julien NOEL

Not applicable

As anyone been able to solve this issue?

I'm experiencing exactly the same behaviour.