Requests fail with the error protocol.http.TooBigLine

When a service from Apigee to backend the below error is seen:

{
"fault": {
"faultstring": "response line size exceeding 2,048",
"detail": {
"errorcode": "protocol.http.TooBigLine"
}
}
}

The response is: 502 Bad Gateway

1 1 1,694
1 REPLY 1

The error is caused because the HTTP response from the backend has a header which exceeds the maximum size. This may be expected, or it could indicate a problem with the backend server. The recommendation is to confirm with the backend team whether long response headers are expected, and if they are then you can configure the limits appropriate to your environment using the documentation located here:

https://docs.apigee.com/private-cloud/v4.18.05/setting-http-requestresponse-header-limits