While migrating from Google Drive to Onedrive, getting Unexpected End of file errors on any MS Office files:
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:789)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at com.google.api.client.http.javanet.NetHttpResponse.(NetHttpResponse.java:37)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:105)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:981)
at com.essentials.migration.objects.google.GoogleDriveObject.getGoogleDocumentStream(GoogleDriveObject.java:138)
at com.essentials.migration.objects.google.GoogleDriveObject.getDownloadStream(GoogleDriveObject.java:129)
at com.essentials.migration.objects.google.GoogleDriveObject.retrieveContent(GoogleDriveObject.java:107)
at com.essentials.migration.objects.GenericObject$11.method(GenericObject.java:268)
at com.essentials.migration.objects.ObjectHandler.start(ObjectHandler.java:69)
at com.essentials.migration.objects.ObjectHandler.run(ObjectHandler.java:31)
at com.essentials.migration.objects.ObjectHandler.run(ObjectHandler.java:41)
at com.essentials.migration.objects.GenericObject.download(GenericObject.java:270)
at com.essentials.migration.database.ContentService.opWrite(ContentService.java:52)
at com.essentials.migration.database.ContentService.opWrite(ContentService.java:39)
at com.essentials.migration.migration.ContentWorker.run(ContentWorker.java:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
To check if the file(s) can be downloaded with the Google API, try the following:
1. In the Browser go to the Google Drive account you are trying to migrate
2. Find the file(s) failing to migrate with the error: Unexpected End of file
3. Find the File ID on Google Drive:
https://docs.google.com/document/d/1woOLSX-hdDf7H26xmqp-TAq4c10RHW-a60QLfw5LP6w/edit?usp=sharing
https://docs.google.com/document/d/<--ThisIsFileID-->/edit?usp=sharing
4. Go to https://developers.google.com/drive/api/v2/reference/files/get
5. In the fileId paste the ID from step 3 and click "Execute":
7. Response from the API will be similar to the error displayed in Essentials for O365 (Unexpected end of file from server)
You could use this information to contact Google Support team, they may be able to provide assistance with the affected files.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center