cancel
Showing results for 
Search instead for 
Did you mean: 

REST API, JSON is there a limit in response size for a string?

carlomarchesoni
New Contributor

REST API, JSON is there a limit in response size for a string?

I have an API that simply returns 200 and

{  "pdf": "string"
}

In SOAP UI in raw data I do see the response, but it is truncated. And if I go to the JSON representation it just shows:

{"pdf": "

and nothing else. It looks like there is a limit somewhere (the length of my return string is 1'967'440.

PS: If I do the same with postman, it returns the complete string correctly.

thank you for your help

2 REPLIES 2
ZDGN
Contributor

Re: REST API, JSON is there a limit in response size for a string?

Hi @carlomarchesoni,

 

May be you could try to change the "Max Response Size" parameter in the HTTP Settings ?

 

Max Response SizeThe maximum number of bytes to read from a response (0 = unlimited)

 

https://www.soapui.org/docs/preferences-and-settings/ 

 

Let us know.

 

 

David.

carlomarchesoni
New Contributor

Re: REST API, JSON is there a limit in response size for a string?

Thank you for your reply.

I tried this out already and it does not make any difference if I have the setting empty or if I do insert a 0 there. The response is always truncated

New Here?
Join us and watch the welcome video:
Top Kudoed Authors