Problem
When calling REST API using ZappySys SSIS PowerPack or ODBC PowerPack you may get following error sometime.
The remote server returned an error: (415) Unsupported Media Type. Response Url: http://myserver/api/somefunction Status Code: UnsupportedMediaType Response Body: The server cannot service the request because the media type is unsupported.
Cause
This error happens due to invalid body content type.
Solution
Select correct body content type from the dropdown or you can enter directly in the request header. If you set contenttype in Headers grid then content type supplied in Dropdown is ignored.
Method-1 : Select from predefined list
Here is how you set content type from predefined selection list
Method-2 : Supply content type in Headers Grid
Another way of supplying content type is directly via headers grid as below. This is useful when you cant find ContentType in predefined list (Method-1)
Contact Us
If you have more question(s) feel free to contact us via Live chat or email to support@zappysys.com
Comments
0 comments
Please sign in to leave a comment.