The response at gateway shown as ���
search cancel

The response at gateway shown as ���

book

Article ID: 262782

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When we invoke a backend system through Gateway we see the response below. 

1�~�ʯ_ެ(,�YE��᜴�����rl�D0B��D𯌽l��cr�:������ �X�xQ�<ۢ��
]��[Y� W��,�����j$���8�t�,
4�
But when we directly invoke the backend endpoint, we see the JSON data.
 
The content type we see in the logs is application/json; odata.metadata=minimal
 
Why is this not showing as expected?

Environment

Release : 10.1 11.x

Resolution

You can audit your request.http.allheadervalues and see if it has a header of

accept-encoding:gzip, deflate, br

And the response headers can be audited with response.http.allheadervalues 

if its sey to 

content-encoding: br

The reponse is brotli encoded and  gateway doesn't support brotli .

You can use a modify transport headers assertion in the policy before the routing assertion  to modify the

accept-encoding header to only accept  gzip, deflate.

accept-encoding:gzip, deflate