REST API, JSON is there a limit in response size for a string?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2021
07:38 AM
01-08-2021
07:38 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021
07:56 AM
01-11-2021
07:56 AM
Hi @carlomarchesoni,
May be you could try to change the "Max Response Size" parameter in the HTTP Settings ?
Max Response Size | The maximum number of bytes to read from a response (0 = unlimited) |
https://www.soapui.org/docs/preferences-and-settings/
Let us know.
David.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2021
06:33 AM
01-12-2021
06:33 AM
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
