Getting 5XX error post enabling Streaming in APIGEE - X

Hello Team ,

We have a requirement to pass large payload (~ 60 MB) through Apigee X . Also, we connect to the backend by a target server.

Hence, to achieve this we have enabled streaming at both proxy and target endpoints.

Proxy Endpoint -

<HTTPProxyConnection>
<BasePath>/xyz</BasePath>
<Properties>
<Property name="request.streaming.enabled">true</Property>
</Properties>
</HTTPProxyConnection>

Target Endpoint -

<HTTPTargetConnection>
<Properties>
<Property name="request.streaming.enabled">true</Property>
</Properties>
<LoadBalancer>
<Server name="api-test-com"/>
</LoadBalancer>
<Path>/demo/xyz</Path>
</HTTPTargetConnection>

But we are getting http 502 or  503 error

502- Bad Gateway

"fault": {
"faultstring": "Unexpected EOF at target",
"detail": {
"errorcode": "messaging.adaptors.http.flow.UnexpectedEOFAtTarget",
"reason": "TARGET_READ_UNEXPECTED_EOF"
}

503 - Service Unavailable

"fault": {

"faultstring": "The Service is temporarily unavailable",

"detail": {

"errorcode": "messaging.adaptors.http.flow.ServiceUnavailable"

}
}

So please can someone confirm if these errors are not related to streaming and coming from the backend only.

Solved Solved
0 1 376
1 ACCEPTED SOLUTION

Most Properly this error dos not related to streaming , this due to target backend server not configured correctly or can not be reached.

You could follow these steps : 

1- Disable Streaming 

2- Test with a low size file 

3- Fix the connectivity issue with the target backend ( You may need support from your network team ) 

4- Enable Streaming and test with large file. 

View solution in original post

1 REPLY 1

Most Properly this error dos not related to streaming , this due to target backend server not configured correctly or can not be reached.

You could follow these steps : 

1- Disable Streaming 

2- Test with a low size file 

3- Fix the connectivity issue with the target backend ( You may need support from your network team ) 

4- Enable Streaming and test with large file.