Apigee : Unexpected EOF at target error when configuring TargetEndpoint with Port 443
kvrao33 opened this issue · comments
Issue: Unexpected EOF at target error when configuring TargetEndpoint with port 443
Description:
I'm encountering an error consistently when configuring a TargetEndpoint with Port 443 in Apigee. Here's the configuration I'm using:
src/main/apigee/apiproxies/ECHO-proxy/apiproxy/proxies/default.xml
<ProxyEndpoint name="default">
<HTTPProxyConnection>
<BasePath>/test</BasePath>
</HTTPProxyConnection>
<RouteRule name="backend">
<TargetEndpoint>backend</TargetEndpoint>
</RouteRule>
</ProxyEndpoint>
src/main/apigee/apiproxies/ECHO-proxy/apiproxy/targets/backend.xml
<TargetEndpoint name="backend">
<HTTPTargetConnection>
<Properties/>
<LoadBalancer>
<Server name="google"/>
</LoadBalancer>
<Path>/echo</Path>
</HTTPTargetConnection>
</TargetEndpoint>
The backend
TargetEndpoint is configured to use a load-balancer targeting a server named google
. However, whenever I attempt to utilize this configuration, I receive the following error:
{
"fault": {
"faultstring": "Unexpected EOF at target",
"detail": {
"errorcode": "messaging.adaptors.http.flow.UnexpectedEOFAtTarget",
"reason": "TARGET_READ_UNEXPECTED_EOF"
}
}
}
Environment:
- VS Code Version: 1.89.1
- Cloud Code Version: 2.10.0
Steps to Reproduce:
- Configure a ProxyEndpoint with the provided configuration.
- Configure a TargetEndpoint using the provided configuration.
- Attempt to use the ProxyEndpoint.
- Observe the error described above.
Expected Behavior:
The ProxyEndpoint should route requests to the TargetEndpoint without encountering the EOF error.
Additional Information:
I'm currently using VS Code version 1.89.1 and Cloud Code version 2.10.0. This issue persists across multiple attempts and configurations.
The targetservers.json
configuration is as follows:
[
{
"enabled": true,
"name": "google",
"description": "google",
"host": "mocktarget.apigee.net",
"port": 443
}
]
i am able to get the expected response if i am use the same target endpoint as port 80
Please let me know if there's any additional information needed to resolve this issue.
Thank You