-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documents cannot be downloaded #172
Comments
Hello 👋 Thank you for taking the time to open this issue with integration_google. I know it's frustrating when software I look forward to working with you on this issue |
You might be able to find out which file it is by accessing a file in your drive via the web UI and then replacing the id in the URL with the id in the Error URL. That might open the file in your browser. |
We do try to infer from the mime type which files are documents and automatically use the export method. |
Unfortunately I cannot access the file on Drive because it's from one of my users. I'll try to repro on my account though. What I could see is that the Activity log shows the creation and subsequent deletion of docx/pptx files, so I assume that those are the problematic ones. Would there be any difference if ODF formats were selected in the settings? Can you also point me to the logic that processes these files? I am not a PHP expert, but I can try to have a look. |
Hello 👋 Cheers 💙 |
This issue was closed because it has been stalled for 5 days with no activity. |
Sorry for the delay! This is the code that downloads the files: https://github.com/nextcloud/integration_google/blob/main/lib/Service/GoogleDriveAPIService.php#L704-L717 And this is the import routine: https://github.com/nextcloud/integration_google/blob/main/lib/Service/GoogleDriveAPIService.php#L244-L398 |
Which version of integration_google are you using?
2.2.0
Which version of Nextcloud are you using?
29.0.1.1
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
N/A
Describe the Bug
Certain files cause the following to be logged:
I am unsure which files are causing this because no filename is logged.
Expected Behavior
Files are transferred without errors.
To Reproduce
I'm unsure about the repro because I have no sample to share, however I suspect these files are documents. Searching for the error in GitHub returns multiple results, and it seems that there are ways to properly get them.
An example (in Python, sorry): https://github.com/dixonl90/tuxdrive/blob/e71ca0da16b6e03a05b21ef6b58109deb7d2b03d/tuxdrive#L311-L315
The text was updated successfully, but these errors were encountered: