Rejected large REST payload

String
Kilo Sage

We are receiving inbound JSON with the size of 11mb payload and SNOW is rejecting that request ,Can any one please suggest what is the property file have to change or any work around 

 

Below is the error code 

{"error":{"detail":"","message":"com.glide.rest.domain.UserException: Rejected large REST payload with content-length=11826360 bytes. Max allowed: 10 MB"},"status":"failure"}
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

try updating this property

25 is the MB

glide.rest.max_content_length - 25

Controlling maximum request size

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Sukraj Raikhraj
Kilo Sage

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/product/mid-server/reference/r_MIDServerProperties.html

you can add that property . 

 

name : mid.discovery.max_payload_size

type : string

 

value: -1

 

write sys_properties.list in application nav and create new one.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

try updating this property

25 is the MB

glide.rest.max_content_length - 25

Controlling maximum request size

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 
In case we can't increase this property or already over the limit, what will be the best approach for this use-case?
Moving to SOAP?