Increase max inbound limit on REST calls

Tom Brown
Mega Guru

 

So by trial and error, I found that my spiffy new Scripted Rest API and Transform system that I made will only accept about 10.4 million characters of the 21+ million character input file.  In researching to 'fix' this, I found that this is the same limit applied by default.  While it's good to know that my diagnostic methods reflect the actual value of the limit, I still need to raise it a good bit.  Our instances didn't have this property defined, so I created it and set it to 50:

glide.rest.scripted.max_inbound_content_length_mb

But I still get a message "com.glide.rest.domain.UserException: Rejected large REST payload with content-length = 21631094 bytes. Max allowed: 10485760 bytes."  Another interesting piece of data is that I didn't start getting the message with the details until AFTER I created the property.  Before, Postman just gave me a generic 'something didn't work' message if I strayed over the limit.

So is there another limit set behind the scenes that is a platform maximum, or is there an additional property that I need to find and set?  Thanks for any information or advice on the matter.

Edit:

Looks like Danish Anwar posted an answer to this question in another post, that there is another property called "glide.rest.max_content_length" that has a max of 25 mb.  This seems to be working, although it puts us close to the limit.  I'll have to check with the sender to see if we can trim down a couple of extraneous fields.  Thank you sir.

1 ACCEPTED SOLUTION

Jace Benson
Mega Sage

I just finished reading your post.  I had the same issue and I documented it on my site cause finding stuff can be hard.

https://blog.jace.pro/sys_properties/
My notes for that property are;

An undocumented property to control the allowed incoming size of max content lengths. Appears to be defaulted at 10 (MB), and per HI has a limit of 25 (MB). Expects an integer e.g. 15.

Let me know if you find anything else about this.

View solution in original post

2 REPLIES 2

Jace Benson
Mega Sage

I just finished reading your post.  I had the same issue and I documented it on my site cause finding stuff can be hard.

https://blog.jace.pro/sys_properties/
My notes for that property are;

An undocumented property to control the allowed incoming size of max content lengths. Appears to be defaulted at 10 (MB), and per HI has a limit of 25 (MB). Expects an integer e.g. 15.

Let me know if you find anything else about this.