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

Hi,

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

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

content-encoding: br

The gateway doesnt support brotli 

You can use a modify transport headers assertion in the policy early in policy before the route  to modify the accept-encoding header to only value of gzip, deflate.