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

Tony Chatfield1
Kilo Patron

How big is your payload?
Perhaps you are exceeding max servicenow files size?

When you say you checked the 'output queue', was this the instance ECC queue - was the payload truncated before it left the instance? or on the mid server?

Community Alums
Not applicable
Hi Tony, Truncated payload xml is around 16 MB. I checked the instance ECC output queue and it is getting truncated. I can see the open tags in the XML but there are closing tags. Do I need to check directly in mid server?

Patrick DeCarl1
ServiceNow Employee
ServiceNow Employee

mid.eccq.max_payload_size property is data being sent to ServiceNow instances via mid server. 

You are looking for payload from SN down to Mid server to 3rd party system? Can you break up the payload you sending? You are limited by the payload string field on ecc table. 

Community Alums
Not applicable
Hi Patrick, Yes, I am looking for payload from SN to 3rd party system. If I break the payload, will it be a multiple rest calls?