{"action":"opened","issue":{"url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/302","repository_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs","labels_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/302/comments","events_url":"https://api.github.com/repos/OneDrive/onedrive-api-docs/issues/302/events","html_url":"https://github.com/OneDrive/onedrive-api-docs/issues/302","id":134259905,"number":302,"title":"OneDrive Business file upload fails with 500 internal Server error","user":{"login":"acarlsen","id":6698402,"avatar_url":"https://avatars.githubusercontent.com/u/6698402?v=3","gravatar_id":"","url":"https://api.github.com/users/acarlsen","html_url":"https://github.com/acarlsen","followers_url":"https://api.github.com/users/acarlsen/followers","following_url":"https://api.github.com/users/acarlsen/following{/other_user}","gists_url":"https://api.github.com/users/acarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/acarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acarlsen/subscriptions","organizations_url":"https://api.github.com/users/acarlsen/orgs","repos_url":"https://api.github.com/users/acarlsen/repos","events_url":"https://api.github.com/users/acarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/acarlsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-17T11:54:24Z","updated_at":"2016-02-17T11:54:24Z","closed_at":null,"body":"I am having issues uploading files to my OneDrive Business account in Android.\r\n\r\nI am using the upload API described here (simple and resumeable both doesn't work for me): https://dev.onedrive.com/items/upload.htm\r\n\r\nEverything else works fine. I can browse, create folders, delete, rename, download files. I use the same implementation for regular OneDrive and that works without issues. I have also tested with official OneDrive Android app and there upload works, so it doesn't seem to be a permissions issue with my OneDrive Office 365 account.\r\n\r\nI am using Retrofit/OkHttp.\r\n\r\nThis is the log from the query:\r\n\r\n```\r\nOkHttp: --> PUT https://<tenantname>-my.sharepoint.com/_api/v2.0/drive/items/root:/pricelist.pdf:/content HTTP/1.1\r\nOkHttp: Content-Type: application/pdf\r\nOkHttp: --> END PUT\r\n\r\nOkHttp: <-- 500 Internal Server Error https://<tenantname>-my.sharepoint.com/_api/v2.0/drive/items/root:/pricelist.pdf:/content (831ms)\r\nOkHttp: Cache-Control: private, max-age=0\r\nOkHttp: Transfer-Encoding: chunked\r\nOkHttp: Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8\r\nOkHttp: Expires: Mon, 01 Feb 2016 22:09:26 GMT\r\nOkHttp: Last-Modified: Tue, 16 Feb 2016 22:09:26 GMT\r\nOkHttp: Server: Microsoft-IIS/8.5\r\nOkHttp: X-SharePointHealthScore: 0\r\nOkHttp: X-SP-SERVERSTATE: ReadOnly=0\r\nOkHttp: ODATA-VERSION: 4.0\r\nOkHttp: SPClientServiceRequestDuration: 92\r\nOkHttp: X-AspNet-Version: 4.0.30319\r\nOkHttp: SPRequestGuid: e5e45f9d-80fa-3000-9580-b34e009cc4be\r\nOkHttp: request-id: e5e45f9d-80fa-3000-9580-b34e009cc4be\r\nOkHttp: Strict-Transport-Security: max-age=31536000\r\nOkHttp: X-FRAME-OPTIONS: SAMEORIGIN\r\nOkHttp: X-Powered-By: ASP.NET\r\nOkHttp: MicrosoftSharePointTeamServices: 16.0.0.4921\r\nOkHttp: X-Content-Type-Options: nosniff\r\nOkHttp: X-MS-InvokeApp: 1; RequireReadOnly\r\nOkHttp: P3P: CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"\r\nOkHttp: Date: Tue, 16 Feb 2016 22:09:25 GMT\r\nOkHttp: OkHttp-Sent-Millis: 1455660569448\r\nOkHttp: OkHttp-Received-Millis: 1455660570267\r\nOkHttp: <-- END HTTP\r\nTransferFileTask: Exception when transferring file\r\nHttpException: OneDrive error: code = -1, System.IO.IOException, message = I/O error occurred.\r\n```\r\n\r\nWhat happens is that I always get a 500 internal server error with the same error body as seen above. As stated the exact same upload code works for ordinary OneDrive.\r\n\r\nI have tried adding many different headers, like Content-Length, Host, Cache-Control etc. but nothing seems to make a difference. What is not seen is a Authorization header which is of course correct and works for all other requests."}}