Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
RVeitch_84
Creator
Creator

tRestClient encoding issue with Response

I'm trying to make a very baisc GET request with a tRestClient and I'm getting a 200 status code returned but I have an encoding issue, I checked with the API documentation which details the following, 

The API assumes UTF-8 encoding in API requests and always returns UTF-8 encoding in all responses.

 

So I added the following to the header with no luck and I also tried this in the advanced setting of Run.

Accept-Charset = UTF-8
-Dfile.encoding=UTF-8

 

Here is a screenshot of the log.

RVeitch_84_0-1760543529265.png

 

 

And when I test this endpoint in Postmand it works fine.

RVeitch_84_0-1760714780982.png

 

 

Thanks for any help.

 

 

 

Labels (1)
  • v8.x

1 Reply
Gjeremy
Employee
Employee

Hello, is it a GZIP compressed response ?

In some case tRESTClient is not able to uncompress the response as it directly read it as a string.

If you are using the request header "Accept-Encoding" = "gzip, deflate, br" try to remove it from the tRESTClient and see if you have now the response you want.

 

In order to know if it's the case or not you can send the headers of the request and the headers of the response.

Best regards

Jérémy