Getting response 415 in rest integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 11:58 AM
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.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 12:08 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 12:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 12:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 12:33 PM