I have configured a target server named “payments-service” which points to some (available) url.
and configured my target endpoint to use it with
<LoadBalancer>
<Server name="payments-service"/>
</LoadBalancer>
<Path>/</Path>
but when trying to get this service through the flow I get
{
"fault": {
"faultstring": "The Service is temporarily unavailable",
"detail": {
"errorcode": "messaging.adaptors.http.flow.NoActiveTargets"
}
}
}
**before using target servers the url was hard coded and worked well, so the problem is isolated in the target servers change
1 Like
Hi @yuri abaev Can you please share your TargetServer configuration? Make sure that the host URL of the backend service (without the protocol). It’s a common configuration error that I see.
Consider the following as the backend URL -
[http://<base-URL>/<path-suffix>](http://<base-URL>/<path-suffix>);
Following should be the target server initialisation in an Environment Configuration -
Name
|
Host |
Port |
Enabled |
Target Server Name
<br><target-server-name><br>
|
Base URL of the target server without the HTTP/HTTPS protocol
<br><base-URL><br>
|
<br>80<br>
|
checked
|
Following should be your target server configuration in an API proxy -
<HTTPTargetConnection>
<Properties/>
<LoadBalancer>
<Server name="<target-server-name>"/>
</LoadBalancer>
<Path><path-suffix></Path>
</HTTPTargetConnection>
Hope this helps, thank you.
2 Likes
Hello @Nisha Mallesh,
Can you please confirm the following 3 points:
-
The “base-URL” does not contain any resource like “/{resource}”
-
The tag is used as "{path-suffix}
-
The “path-suffix” variable is available in the context ?
To confirm -
-
Yes, it should not contain any resource
-
I have enclosed path-suffix in <> as a reference instead of {}, kindly replace with the value.
-
No, it is just a reference name I have used with respect to the backendURL taken for instance.
Thanks for clarification.
@Nisha Mallesh : After adding the target Server do we need to restart anything? I have added the Target Server but still i am getting the above error.
Error :
{“Envelope”: { “encodingStyle”: “http://schemas.xmlsoap.org/soap/encoding/”, “Body”: {“Fault”: { “faultcode”: “soap:Server”, “faultstring”: “The Service is temporarily unavailable”, “faultactor”: {}, “detail”: {“source”: {“errorcode”: “messaging.adaptors.http.flow.NoActiveTargets”}} }} }}