TargetServer environment config with random port number (different from 80 or 443)

Not applicable

Hi,

I'm writing an API Proxy to consume the AEM Query Builder endpoint which uses the port number 4502. I created the target server configuration for the environment test and I'm referring to it in the target flow in this way:

<HTTPTargetConnection>
	<LoadBalancer>
		<Server name="AEM"/>    
	</LoadBalancer>    
	<Path>/bin/querybuilder.json</Path>
</HTTPTargetConnection>

Target Server configuration obviously is set up with the port number 4502 and the as base url just the IP without http://.

When I call the endpoint I get:
{"fault":{"faultstring":"The Service is temporarily unavailable","detail":{"errorcode":"messaging.adaptors.http.flow.NoActiveTargets"}}}

No Active Targets. The enable flag is checked... so I don't understand why it is throwing this error. All the other target servers configured are either on port 80 or 443 and all of them work perfectly but they are domains no ip.

I get the same error if I configure the HTTPTargetConnection with:

<URL>http://<ip>:4502/bin/querybuilder.json</URL>

Here the Target Server configuration at environment level. Ip obfuscated.

5864-screen-shot-2017-11-03-at-141917.png

Any suggestions?

0 5 897
5 REPLIES 5

Could you please share the target server configuration as well as your proxy?

Also make sure that apigee can reach your target server at the ip and port specified.

Sure, I updated the description with a screenshot. Thanks
I'm looking into the IP and port restriction on Apigee in case it depends on that. Good point, thank you!

Not applicable

Thanks @Ricardo de Andrade,

The problem was that I had to whitelist the Apigee IP range on the AEM instance. Thanks for the heads up.

Cool, glad to hear it's all good now.

hi thanks for the solution. You can use the links below to get information about servers or changing ip.

https://domainsquery.com/category/server/

https://domainsquery.com/category/seo/