SharePoint returning HTTP Status code 500 when posting files like png,pdf etc..

Sachin Belide 1 Reputation point
2020-08-18T04:25:51.397+00:00

Hi Experts,

SharePoint returning HTTP Status code 500 when posting files like png,pdf etc.

Response body from SharePoint

<?xml version="1.0" encoding="utf-8"?>
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>-1, System.IO.IOException</m:code>
<m:message xml:lang="en-US">I/O error occurred.</m:message>

</m:error>

Could you please help me with this.

Please find the screenshot attached.

I am hitting sharepoint URL through SAP Cloud Platform Integration middleware.

I am able to read file from Sharepoint in binary format and construct original file but when i try to post/upload file to Sharepoint i am getting below error.

18145-sharepoint-issue.png

Can you please help me if SharePoint expects any header other than Authorization while accepting binary files as i am able to post text files without any issue in code.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,212 questions
{count} votes