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 -

/xyz true

Target Endpoint -

true /demo/xyz

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.

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.

1 Like