Web Connection
Json Limit
Gravatar is a globally recognized avatar based on your email address. Json Limit
  Bob Lucas
  All
  Dec 30, 2019 @ 05:26pm

Hi Rick;

I have found with some json data going back to the calling webpage that some sort of limit is imposed. My response data has this line in it: *** Response display truncated at 500,000 of 1,153,825 bytes

Where can I override that issue?

Thanks

Bob

Gravatar is a globally recognized avatar based on your email address. re: Json Limit
  Rick Strahl
  Bob Lucas
  Jan 1, 2020 @ 09:36pm

Can you post a picture (just paste an image here) of the error? It sounds like you're using some sort of tooling (Fiddler?) and that will potentially limit the amount of data that is displayed.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Json Limit
  Bob Lucas
  Rick Strahl
  Jan 2, 2020 @ 09:19am

Hey Rick;

Happy New Year! This must have been a pre new year's brain freeze. I am pretty sure what I was seeing was that the Status Window - Full Http Response tab was truncating the actual http response. When I looked at the text here I saw the truncation message, and I thought this was in the response. But when I finally checked the actual outgoing response file, all the text was there. And I couldn't find the truncation text in any of the source code objects but I am pretty sure it happens in the Status popup. But I found this in wcVisual.vcx

			IF lnOrigSize > 500000
			    this.pgfPages.pgHtml.edtHttpResponse.Value = PADL(this.pgfPages.pgHtml.edtHttpResponse.Value,500000) + CHR(13) + CHR(13) +;
			    "*** Response display truncated at 500,000 of " + TRANSFORM(lnOrigSize,"9,999,999") + " bytes"	    
			ENDIF

So hugely my mistake.

I have been using Web Connection for over 25 years now and it is still going great! Thanks for all your work on this great product.

Bob

Gravatar is a globally recognized avatar based on your email address. re: Json Limit
  Rick Strahl
  Bob Lucas
  Jan 2, 2020 @ 06:18pm

Uppded the size to 1meg. The limit originated a long time ago when memory was more of a concern - these days a 1meg doc should be fine.

FWIW, if you're testing your APIs and capturing output I'd recommend using a Web testing tool like West Wind WebSurge or Postman. This makes it much easier to see requests and store the reuqests you run for later reuse.

+++ Rick ---

© 1996-2024