Getting response 415 in rest integration

Community Alums
Not applicable

Hi All, 

We are sending XML through Rest Post method. We are getting 200 response for smaller size XML but for huge XML we are getting 415 code with "Unsupported Media Type","message":"Content type '' not supported" error.

We are using mid server to send request. When verified the output queue, we found that payload is getting truncated. 

For resolving this i have created a entry in mid server mid.eccq.max_payload_size and increased the size but no luck. 

Please advise. 

 

10 REPLIES 10

Community Alums
Not applicable
So you telling that we can't increase the payload limit?

You could try, but I have been told its not recommended. I would open a HI ticket and ask support. 

Yes, it would be more than one rest call if the 3rd party system allows it. 

Community Alums
Not applicable

Hi Patrick,

How can i break the XML request to chunks and send it to 3rd party?

 

 

Sukraj Raikhraj
Kilo Sage

you may need to increase the attachment payload size. Do you have any idea how large is the larger xml dataset?  2 gig ?

Community Alums
Not applicable
Hi Sukraj, Actually, main XML is around 15 MB and it has multiple calculations from different tables and we are sending it through schedulers. But I am not sure when ServiceNow send it to external system how much the size extend?