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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
TRF
Champion II
Champion II

Component tHttpRequest hangs when the JSON response is too big

Hello guys,

 

I've a service developed using TOS ESB 6.4.1 which must call an other service exposed by a data provider to get informations about some companies (I can't give more details).

Anyway, sometimes the JSON response size is "normal" and everything works fine but sometimes, depending on the company size, the response is really huge: for example, 26 Mb Mo with a formatted JSON composed of 565,750 lines!

In this case, tHttpRequest never ends.

I've also tried with tRESTClient with the same problem.

When I call this service using Postman everything works fine, so I can say the called service is not the problem, only the response size is the problem.

 

Any idea of how I can deal with such a huge JSON response?

Labels (4)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II
Author

Problem has been solved by the data provider himself by reducing the response size.

Thank's guys.

View solution in original post

3 Replies
nfz11
Creator III
Creator III

Did you try streaming the HTTP response?  If you write it in Java you can stream it so the response is not read into memory fully.  That might be your issue, not sure.

https://stackoverflow.com/questions/11710683/stream-a-http-response-in-java

TRF
Champion II
Champion II
Author

The idea is to use components available within TOS. However if they all have this kind of limitations, I'll do it by myself using a piece of Java code.
TRF
Champion II
Champion II
Author

Problem has been solved by the data provider himself by reducing the response size.

Thank's guys.